/*
 * This is a RANDOMLY GENERATED PROGRAM.
 *
 * Generator: csmith 2.4.0
 * Git version: 72c49db
 * Options:   --bitfields --packed-struct --output test320.c
 * Seed:      3135392249
 */

#include "csmith.h"


static long __undefined;

/* --- Struct/Union Declarations --- */
/* --- GLOBAL VARIABLES --- */
static volatile int32_t g_2 = 2L;/* VOLATILE GLOBAL g_2 */
static volatile int32_t g_3[10][3] = {{0x261F9C28L,0xD925B0E4L,0L},{1L,0xD925B0E4L,1L},{3L,0x261F9C28L,0L},{3L,3L,0x261F9C28L},{1L,0x261F9C28L,0x261F9C28L},{0x261F9C28L,0xD925B0E4L,0L},{1L,0xD925B0E4L,1L},{3L,0x261F9C28L,0L},{3L,3L,0x261F9C28L},{1L,0x261F9C28L,0x261F9C28L}};
static int32_t g_4 = 0x5DB34E6DL;
static int32_t g_10[2] = {0x97412DF3L,0x97412DF3L};
static uint16_t g_34 = 0xFBAAL;
static int32_t g_65 = (-1L);
static int32_t g_66 = (-1L);
static int64_t g_108[9][1][4] = {{{(-7L),0xD150EB8E47B4319BLL,0xD150EB8E47B4319BLL,(-7L)}},{{9L,(-1L),0x8C3DAD0BAEE16EA2LL,0xD150EB8E47B4319BLL}},{{(-1L),0xDA633836DABD80E4LL,0xF3906C131537F146LL,1L}},{{0x47A0C8E20B3FD2CFLL,9L,(-10L),2L}},{{0xF3906C131537F146LL,9L,0xF3906C131537F146LL,(-10L)}},{{0x8C3DAD0BAEE16EA2LL,0x2DB271CF4EE93D3DLL,(-7L),0x8C3DAD0BAEE16EA2LL}},{{0xD150EB8E47B4319BLL,(-10L),(-1L),0x2DB271CF4EE93D3DLL}},{{(-10L),9L,(-1L),(-1L)}},{{0xD150EB8E47B4319BLL,0xD150EB8E47B4319BLL,(-7L),2L}}};
static int32_t *g_110 = (void*)0;
static int32_t **g_109 = &g_110;
static int32_t g_113 = 0x8CA92D9FL;
static uint32_t g_133 = 0x04766C61L;
static uint8_t g_138 = 0x14L;
static int32_t ***g_145[8] = {&g_109,&g_109,&g_109,&g_109,&g_109,&g_109,&g_109,&g_109};
static int32_t ****g_144 = &g_145[1];
static uint64_t g_162 = 0x02ECAC60C0AA4C98LL;
static int16_t g_176 = (-1L);
static int8_t g_178 = 0x19L;
static int64_t * volatile g_180 = &g_108[3][0][3];/* VOLATILE GLOBAL g_180 */
static int64_t * volatile *g_179 = &g_180;
static uint8_t *g_205 = &g_138;
static uint16_t g_215[8] = {1UL,1UL,1UL,1UL,1UL,1UL,1UL,1UL};
static uint32_t g_261 = 4294967291UL;
static uint16_t g_299 = 0x464BL;
static uint64_t * volatile *g_304 = (void*)0;
static uint16_t **g_368 = (void*)0;
static volatile int16_t g_373 = (-7L);/* VOLATILE GLOBAL g_373 */
static volatile int16_t *g_372 = &g_373;
static volatile int16_t **g_371 = &g_372;
static const volatile uint64_t g_391 = 18446744073709551612UL;/* VOLATILE GLOBAL g_391 */
static const volatile uint64_t * volatile g_390 = &g_391;/* VOLATILE GLOBAL g_390 */
static const volatile uint64_t * volatile * volatile g_389 = &g_390;/* VOLATILE GLOBAL g_389 */
static const volatile uint64_t * volatile * volatile *g_388 = &g_389;
static const volatile uint64_t * volatile * volatile **g_387[3] = {&g_388,&g_388,&g_388};
static int16_t g_403 = 0x9353L;
static int32_t g_411 = (-6L);
static volatile int8_t g_448[3][10][1] = {{{0xDDL},{0x95L},{0x95L},{0xDDL},{0x95L},{0x95L},{0xDDL},{0x95L},{0x95L},{0xDDL}},{{0x95L},{0x95L},{0xDDL},{0x95L},{0x95L},{0xDDL},{0x95L},{0x95L},{0xDDL},{0x95L}},{{0x95L},{0xDDL},{0x95L},{0x95L},{0xDDL},{0x95L},{0x95L},{0xDDL},{0x95L},{0x95L}}};
static volatile int8_t g_449 = 0xB3L;/* VOLATILE GLOBAL g_449 */
static volatile int8_t g_450 = 0x09L;/* VOLATILE GLOBAL g_450 */
static volatile int8_t g_451 = 0x08L;/* VOLATILE GLOBAL g_451 */
static volatile int8_t g_452 = (-1L);/* VOLATILE GLOBAL g_452 */
static volatile int8_t g_453 = 5L;/* VOLATILE GLOBAL g_453 */
static volatile int8_t g_454 = 0xC9L;/* VOLATILE GLOBAL g_454 */
static volatile int8_t g_455 = 0x28L;/* VOLATILE GLOBAL g_455 */
static volatile int8_t g_456 = 0x84L;/* VOLATILE GLOBAL g_456 */
static volatile int8_t g_457 = 1L;/* VOLATILE GLOBAL g_457 */
static volatile int8_t g_458 = (-1L);/* VOLATILE GLOBAL g_458 */
static volatile int8_t g_459 = 0x2DL;/* VOLATILE GLOBAL g_459 */
static volatile int8_t g_460[9][3] = {{0x94L,1L,0x94L},{1L,0x0CL,0x0CL},{1L,1L,1L},{1L,1L,0x0CL},{0x94L,1L,0x94L},{1L,0x0CL,0x0CL},{1L,1L,1L},{1L,1L,0x0CL},{0x94L,1L,0x94L}};
static volatile int8_t g_461 = 0L;/* VOLATILE GLOBAL g_461 */
static volatile int8_t g_462 = 0L;/* VOLATILE GLOBAL g_462 */
static volatile int8_t g_463 = 0x59L;/* VOLATILE GLOBAL g_463 */
static volatile int8_t g_464 = 0xAAL;/* VOLATILE GLOBAL g_464 */
static volatile int8_t g_465 = 9L;/* VOLATILE GLOBAL g_465 */
static volatile int8_t g_466 = 0L;/* VOLATILE GLOBAL g_466 */
static volatile int8_t g_467 = 9L;/* VOLATILE GLOBAL g_467 */
static volatile int8_t g_468 = 0L;/* VOLATILE GLOBAL g_468 */
static volatile int8_t g_469 = 1L;/* VOLATILE GLOBAL g_469 */
static volatile int8_t *g_447[2][7][7] = {{{&g_458,&g_469,&g_451,&g_451,&g_469,&g_458,&g_463},{&g_452,(void*)0,&g_453,(void*)0,(void*)0,(void*)0,(void*)0},{&g_449,&g_466,&g_456,(void*)0,&g_463,(void*)0,(void*)0},{&g_468,(void*)0,(void*)0,&g_448[2][2][0],&g_452,&g_451,&g_468},{(void*)0,&g_469,&g_465,(void*)0,&g_464,&g_467,&g_464},{(void*)0,&g_450,&g_450,(void*)0,&g_456,&g_461,(void*)0},{&g_468,(void*)0,&g_458,&g_456,&g_449,&g_458,&g_461}},{{&g_449,&g_460[6][1],&g_467,&g_469,&g_464,&g_455,(void*)0},{&g_452,&g_468,&g_456,&g_460[6][1],(void*)0,&g_454,&g_464},{&g_458,(void*)0,&g_468,&g_454,(void*)0,&g_454,&g_468},{&g_464,&g_464,&g_459,&g_449,(void*)0,&g_455,(void*)0},{(void*)0,&g_454,&g_451,(void*)0,&g_454,&g_458,(void*)0},{(void*)0,(void*)0,&g_468,&g_463,(void*)0,&g_461,&g_463},{&g_449,(void*)0,&g_469,&g_468,&g_461,(void*)0,&g_456}}};
static volatile int8_t * volatile * volatile g_446 = &g_447[1][1][5];/* VOLATILE GLOBAL g_446 */
static volatile int8_t * volatile *g_470 = (void*)0;
static volatile int8_t * volatile * volatile *g_445[5][3][8] = {{{(void*)0,&g_446,(void*)0,&g_470,&g_470,&g_470,&g_470,&g_470},{&g_470,(void*)0,&g_470,&g_470,(void*)0,(void*)0,&g_470,&g_470},{&g_470,&g_470,(void*)0,&g_470,&g_470,&g_470,&g_470,(void*)0}},{{&g_470,&g_470,&g_470,(void*)0,&g_470,&g_470,&g_470,(void*)0},{&g_470,(void*)0,&g_470,&g_470,&g_470,&g_470,(void*)0,&g_470},{&g_470,&g_470,&g_470,&g_470,&g_470,&g_470,&g_470,&g_470}},{{&g_470,&g_470,&g_470,&g_470,&g_470,&g_470,(void*)0,&g_470},{&g_470,&g_470,&g_470,(void*)0,&g_470,(void*)0,&g_470,(void*)0},{&g_470,&g_470,(void*)0,&g_470,&g_470,&g_470,&g_470,&g_446}},{{&g_470,&g_470,&g_470,&g_470,(void*)0,&g_470,&g_470,&g_470},{&g_470,&g_470,&g_470,&g_470,&g_470,&g_470,&g_470,(void*)0},{(void*)0,(void*)0,(void*)0,&g_446,&g_470,&g_470,&g_470,&g_470}},{{(void*)0,&g_470,&g_470,&g_446,&g_470,&g_470,(void*)0,(void*)0},{&g_470,&g_470,&g_470,&g_470,&g_470,(void*)0,&g_470,&g_470},{&g_446,(void*)0,&g_470,&g_470,&g_470,&g_470,(void*)0,&g_446}}};
static uint8_t g_488 = 0xF5L;
static uint64_t g_519 = 0x8165DD9C75B2FF60LL;
static uint64_t *g_518 = &g_519;
static uint32_t g_594 = 0xD36EE9CEL;
static uint16_t g_642[9] = {5UL,5UL,5UL,5UL,5UL,5UL,5UL,5UL,5UL};
static int64_t g_712 = 6L;
static int8_t g_820 = (-1L);
static int64_t g_882 = 0xA0DA5FDF8DE0666ELL;
static int32_t g_951[7] = {0x9CB5DC14L,0x9CB5DC14L,0x9CB5DC14L,0x9CB5DC14L,0x9CB5DC14L,0x9CB5DC14L,0x9CB5DC14L};
static int64_t g_952 = 0x888F81F2BF21E24FLL;
static volatile uint32_t *g_995 = (void*)0;
static volatile uint32_t ** volatile g_994 = &g_995;/* VOLATILE GLOBAL g_994 */
static volatile uint32_t ** volatile *g_993 = &g_994;
static const int8_t g_1104 = 0xD8L;
static uint32_t g_1123 = 0x530F86F6L;
static int8_t g_1125 = 0x93L;
static int32_t *g_1137 = &g_411;
static uint64_t ***g_1208 = (void*)0;
static uint64_t ****g_1207[5][8] = {{(void*)0,&g_1208,(void*)0,&g_1208,&g_1208,&g_1208,&g_1208,&g_1208},{&g_1208,&g_1208,&g_1208,&g_1208,&g_1208,(void*)0,&g_1208,(void*)0},{&g_1208,(void*)0,(void*)0,(void*)0,&g_1208,(void*)0,&g_1208,&g_1208},{(void*)0,(void*)0,&g_1208,&g_1208,(void*)0,(void*)0,&g_1208,(void*)0},{&g_1208,&g_1208,&g_1208,&g_1208,&g_1208,&g_1208,&g_1208,(void*)0}};
static uint64_t *****g_1206 = &g_1207[4][3];
static volatile uint32_t g_1301 = 0UL;/* VOLATILE GLOBAL g_1301 */
static volatile uint32_t * volatile g_1300 = &g_1301;/* VOLATILE GLOBAL g_1300 */
static volatile uint32_t * volatile *g_1299 = &g_1300;
static int8_t *g_1322 = (void*)0;
static int8_t **g_1321 = &g_1322;
static int8_t ***g_1320 = &g_1321;
static int8_t ****g_1319 = &g_1320;
static int64_t *g_1407 = &g_712;
static int64_t **g_1406 = &g_1407;
static int64_t ***g_1487 = &g_1406;
static int64_t ****g_1486 = &g_1487;
static uint8_t ***g_1612 = (void*)0;
static volatile uint8_t * volatile * volatile g_1615 = (void*)0;/* VOLATILE GLOBAL g_1615 */
static volatile uint8_t * volatile * volatile *g_1614 = &g_1615;
static const int16_t *g_1623[4][7][1] = {{{&g_176},{(void*)0},{&g_176},{(void*)0},{&g_176},{(void*)0},{&g_176}},{{(void*)0},{&g_176},{(void*)0},{&g_176},{(void*)0},{&g_176},{(void*)0}},{{&g_176},{(void*)0},{&g_176},{(void*)0},{&g_176},{(void*)0},{&g_176}},{{(void*)0},{&g_176},{(void*)0},{&g_176},{(void*)0},{&g_176},{(void*)0}}};
static const int16_t **g_1622 = &g_1623[3][4][0];
static int8_t g_1753[1][10] = {{0x67L,0x6FL,0x6FL,0x67L,0x6FL,0x6FL,0x67L,0x6FL,0x6FL,0x67L}};
static uint8_t ****g_1789 = &g_1612;
static int16_t g_1828 = 0L;
static uint32_t g_1830 = 0x043AB949L;
static uint8_t g_1832 = 1UL;
static uint32_t g_1887 = 0x73F8060EL;
static uint8_t g_1944 = 0xBCL;
static uint8_t **g_2097[10][1] = {{(void*)0},{&g_205},{(void*)0},{&g_205},{(void*)0},{&g_205},{(void*)0},{&g_205},{(void*)0},{&g_205}};
static uint32_t ****g_2119 = (void*)0;
static int32_t * volatile g_2192 = &g_65;/* VOLATILE GLOBAL g_2192 */
static int32_t * volatile * volatile g_2193 = &g_2192;/* VOLATILE GLOBAL g_2193 */
static int32_t * volatile g_2229 = &g_10[0];/* VOLATILE GLOBAL g_2229 */
static uint32_t *****g_2232 = (void*)0;
static volatile int8_t g_2257 = 0x45L;/* VOLATILE GLOBAL g_2257 */
static volatile int64_t g_2321 = 0xE35FEA977F2DACDFLL;/* VOLATILE GLOBAL g_2321 */
static int8_t ***g_2565 = &g_1321;
static int64_t g_2782 = (-6L);
static int32_t *** volatile g_2786 = &g_109;/* VOLATILE GLOBAL g_2786 */
static int32_t g_2825 = 0L;
static int16_t g_2854 = 0x9572L;
static int32_t g_2879 = 0x1DFA32D4L;
static uint8_t g_2937 = 255UL;
static uint32_t ** volatile * volatile *g_2963 = (void*)0;
static uint64_t * volatile * const  volatile *g_2969[1] = {&g_304};
static int16_t g_3095 = 0x0F6AL;
static int32_t ** volatile g_3141 = &g_1137;/* VOLATILE GLOBAL g_3141 */
static int32_t ** volatile g_3142 = &g_1137;/* VOLATILE GLOBAL g_3142 */
static int32_t ** volatile g_3150 = &g_1137;/* VOLATILE GLOBAL g_3150 */
static volatile int32_t g_3201 = (-1L);/* VOLATILE GLOBAL g_3201 */
static volatile int32_t *g_3200 = &g_3201;
static volatile int32_t * volatile * const g_3199[8][9] = {{&g_3200,&g_3200,&g_3200,&g_3200,&g_3200,&g_3200,&g_3200,&g_3200,&g_3200},{&g_3200,&g_3200,&g_3200,&g_3200,&g_3200,&g_3200,&g_3200,&g_3200,&g_3200},{&g_3200,(void*)0,&g_3200,&g_3200,&g_3200,&g_3200,&g_3200,&g_3200,&g_3200},{&g_3200,&g_3200,&g_3200,&g_3200,&g_3200,&g_3200,&g_3200,&g_3200,&g_3200},{&g_3200,(void*)0,&g_3200,&g_3200,&g_3200,&g_3200,&g_3200,&g_3200,&g_3200},{&g_3200,&g_3200,&g_3200,&g_3200,&g_3200,&g_3200,&g_3200,&g_3200,&g_3200},{&g_3200,&g_3200,&g_3200,&g_3200,&g_3200,&g_3200,&g_3200,&g_3200,&g_3200},{&g_3200,&g_3200,&g_3200,&g_3200,&g_3200,&g_3200,&g_3200,&g_3200,&g_3200}};
static uint16_t g_3203 = 0x740DL;
static uint64_t ** const g_3249 = (void*)0;
static uint64_t ** const *g_3248 = &g_3249;
static int8_t *****g_3351 = &g_1319;
static const int32_t *g_3403[6] = {&g_113,&g_113,&g_113,&g_113,&g_113,&g_113};
static const int32_t ** volatile g_3402[1][1] = {{&g_3403[0]}};
static volatile uint8_t g_3411 = 0xC1L;/* VOLATILE GLOBAL g_3411 */
static int32_t *****g_3426 = &g_144;
static const int64_t ***g_3633 = (void*)0;
static const int64_t ****g_3632[7] = {&g_3633,&g_3633,&g_3633,&g_3633,&g_3633,&g_3633,&g_3633};
static volatile int64_t g_3705 = 0x4C2275B8EFA8C378LL;/* VOLATILE GLOBAL g_3705 */
static int8_t g_3743[1] = {0x23L};
static uint64_t g_3747 = 3UL;
static uint64_t g_3793 = 0xD6A7624C81AC5C99LL;
static uint8_t g_3885 = 0xFDL;
static volatile int8_t g_3890 = 1L;/* VOLATILE GLOBAL g_3890 */
static uint32_t *g_4014[1] = {(void*)0};
static uint32_t **g_4013 = &g_4014[0];
static uint32_t ***g_4012 = &g_4013;
static uint8_t *****g_4018 = &g_1789;
static int32_t g_4037 = 0x10031C9CL;
static int64_t **g_4073[9] = {(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0};
static int64_t ***g_4072[9] = {&g_4073[6],&g_4073[6],&g_4073[6],&g_4073[6],&g_4073[6],&g_4073[6],&g_4073[6],&g_4073[6],&g_4073[6]};
static volatile int8_t g_4104 = (-1L);/* VOLATILE GLOBAL g_4104 */
static volatile uint64_t g_4113 = 18446744073709551606UL;/* VOLATILE GLOBAL g_4113 */


/* --- FORWARD DECLARATIONS --- */
static int64_t  func_1(void);
static uint32_t  func_37(int32_t * p_38, uint8_t  p_39, uint16_t * p_40, uint16_t * p_41, int16_t  p_42);
static int32_t * func_45(int64_t  p_46, uint16_t * const  p_47, int32_t * p_48, uint32_t  p_49);
static int64_t  func_53(uint16_t * p_54, int64_t  p_55);
static uint64_t  func_58(uint16_t * p_59, int32_t * p_60);
static int32_t * func_61(const int64_t  p_62);
static int32_t  func_73(uint64_t  p_74, const int16_t  p_75);
static int64_t  func_81(uint16_t * p_82, int64_t  p_83, uint8_t  p_84, int8_t  p_85);
static int64_t  func_86(const int32_t * p_87, uint64_t  p_88, int32_t  p_89, int32_t * p_90);
static uint8_t  func_92(uint16_t * p_93, int32_t  p_94, int32_t  p_95, uint16_t * p_96);


/* --- FUNCTIONS --- */
/* ------------------------------------------ */
/* 
 * reads : g_3 g_10 g_4 g_144 g_145 g_109 g_110 g_468 g_3199 g_3200 g_3201 g_3203 g_1137 g_1830 g_1487 g_1406 g_1407 g_712 g_3411 g_215 g_3351 g_1319 g_1300 g_1301 g_2854 g_1320 g_1321 g_133 g_1299 g_3142 g_411 g_65 g_299 g_390 g_391 g_1486 g_1753 g_205 g_138 g_518 g_519 g_403 g_176 g_261 g_371 g_372 g_373 g_162 g_3141 g_3426 g_66 g_448 g_179 g_180 g_34 g_388 g_389 g_3705 g_3150 g_113 g_3743 g_3747 g_2229 g_951 g_952 g_642 g_993 g_820 g_594 g_995 g_1125 g_456 g_2937 g_1887 g_3885 g_2786 g_2193 g_2192 g_882 g_108 g_3248 g_3249 g_462 g_4037 g_4113
 * writes: g_4 g_3 g_34 g_2854 g_488 g_133 g_411 g_65 g_594 g_2825 g_3411 g_3426 g_1887 g_299 g_712 g_138 g_162 g_403 g_176 g_3095 g_261 g_1832 g_66 g_110 g_108 g_1320 g_3632 g_1137 g_519 g_113 g_10 g_951 g_993 g_215 g_178 g_1125 g_1321 g_1830 g_952 g_1944 g_2097 g_1319 g_4012 g_4018 g_4072 g_4113
 */
static int64_t  func_1(void)
{ /* block id: 0 */
    int32_t l_27[2];
    uint16_t l_28 = 1UL;
    uint16_t l_36[9] = {65529UL,65529UL,65529UL,65529UL,65529UL,65529UL,65529UL,65529UL,65529UL};
    int32_t l_2903 = 0xAAA94631L;
    int32_t l_2911 = 0x4DC5AA3DL;
    int32_t *l_2912 = (void*)0;
    uint32_t l_2974[9][8] = {{0x0FD06CA1L,0x0FD06CA1L,0x0FD06CA1L,0x0FD06CA1L,0x0FD06CA1L,0x0FD06CA1L,0x0FD06CA1L,0x0FD06CA1L},{0x0FD06CA1L,0x0FD06CA1L,0x0FD06CA1L,0x0FD06CA1L,0x0FD06CA1L,0x0FD06CA1L,0x0FD06CA1L,0x0FD06CA1L},{0x0FD06CA1L,0x0FD06CA1L,0x0FD06CA1L,0x0FD06CA1L,0x0FD06CA1L,0x0FD06CA1L,0x0FD06CA1L,0x0FD06CA1L},{0x0FD06CA1L,0x0FD06CA1L,0x0FD06CA1L,0x0FD06CA1L,0x0FD06CA1L,0x0FD06CA1L,0x0FD06CA1L,0x0FD06CA1L},{0x0FD06CA1L,0x0FD06CA1L,0x0FD06CA1L,0x0FD06CA1L,0x0FD06CA1L,0x0FD06CA1L,0x0FD06CA1L,0x0FD06CA1L},{0x0FD06CA1L,0x0FD06CA1L,0x0FD06CA1L,0x0FD06CA1L,0x0FD06CA1L,0x0FD06CA1L,0x0FD06CA1L,0x0FD06CA1L},{0x0FD06CA1L,0x0FD06CA1L,0x0FD06CA1L,0x0FD06CA1L,0x0FD06CA1L,0x0FD06CA1L,0x0FD06CA1L,0x0FD06CA1L},{0x0FD06CA1L,0x0FD06CA1L,0x0FD06CA1L,0x0FD06CA1L,0x0FD06CA1L,0x0FD06CA1L,0x0FD06CA1L,0x0FD06CA1L},{0x0FD06CA1L,0x0FD06CA1L,0x0FD06CA1L,0x0FD06CA1L,0x0FD06CA1L,0x0FD06CA1L,0x0FD06CA1L,0x0FD06CA1L}};
    int32_t l_2997 = (-2L);
    int16_t *l_3020 = (void*)0;
    int32_t l_3023 = 6L;
    int32_t l_3038[2][6][10] = {{{(-3L),(-1L),1L,0x5FB72A01L,0x4E26E571L,(-3L),(-3L),0x4E26E571L,0x5FB72A01L,1L},{(-1L),(-1L),(-7L),0x15C25BE4L,0x4E26E571L,1L,(-1L),0x4E26E571L,(-10L),0x4E26E571L},{(-1L),(-3L),1L,0x15C25BE4L,1L,(-3L),(-1L),1L,0x5FB72A01L,0x4E26E571L},{(-3L),(-1L),1L,0x5FB72A01L,0x4E26E571L,(-3L),(-3L),0x4E26E571L,0x5FB72A01L,1L},{(-1L),(-1L),(-7L),0x15C25BE4L,0x4E26E571L,1L,(-1L),0x4E26E571L,(-10L),0x4E26E571L},{(-1L),(-3L),1L,0x15C25BE4L,1L,(-3L),(-1L),1L,0x5FB72A01L,0x4E26E571L}},{{(-3L),(-1L),1L,0x5FB72A01L,0x4E26E571L,(-3L),(-3L),0x4E26E571L,0x5FB72A01L,1L},{(-1L),(-1L),(-7L),0x15C25BE4L,0x4E26E571L,1L,(-1L),0x4E26E571L,(-10L),0x4E26E571L},{(-1L),(-3L),1L,0x15C25BE4L,1L,(-3L),(-1L),1L,0x5FB72A01L,0x4E26E571L},{(-3L),(-1L),1L,0x5FB72A01L,0x4E26E571L,(-3L),(-3L),0x4E26E571L,0x5FB72A01L,1L},{(-1L),(-1L),(-7L),0x15C25BE4L,0x4E26E571L,1L,(-1L),0x4E26E571L,(-10L),0x4E26E571L},{(-1L),(-3L),1L,0x15C25BE4L,1L,(-3L),(-1L),1L,0x5FB72A01L,0x4E26E571L}}};
    int64_t l_3039[1][1][1];
    uint16_t l_3041 = 65533UL;
    uint32_t l_3043 = 5UL;
    int16_t l_3044 = 1L;
    uint16_t * const l_3045 = &l_36[6];
    int32_t l_3096 = 0x7F30E0A3L;
    int8_t l_3097 = 0L;
    const int32_t l_3123[8] = {2L,2L,2L,2L,2L,2L,2L,2L};
    uint64_t l_3147 = 0x6314092004F96AA8LL;
    const uint32_t l_3180[3][8][10] = {{{0x6F999CFDL,0x0131F111L,0xCC3156B8L,0x7705A813L,4294967293UL,1UL,0x4A829854L,0xEC619747L,0x4C0BA0DEL,0x396B074DL},{0xEC619747L,0x6F999CFDL,0xFCBC35C1L,0xC462093FL,0x7742FCF4L,0x0131F111L,4UL,0x7742FCF4L,0x6D715551L,0xD3F572FFL},{4294967292UL,0x12B3B05DL,0x337B8384L,0x543D803CL,1UL,4294967295UL,0x320D634FL,0UL,0x89BF26B8L,0xD3F572FFL},{0xB9EBC564L,0x4F741591L,0x4E69FB23L,0x46EC3386L,2UL,0xA2B9481BL,4294967295UL,0x8241A5A2L,0x497C0FE7L,0xB9EBC564L},{0UL,1UL,0x497C0FE7L,0xD0E10CCEL,0xD3F572FFL,0xD0E10CCEL,0x497C0FE7L,1UL,0UL,0x3F43D38FL},{4294967293UL,0xCC3156B8L,0UL,0x33A058BFL,0xE4BB0626L,7UL,0x0131F111L,4UL,0x12B3B05DL,0x4C0BA0DEL},{0xEC619747L,7UL,0x2A789651L,0x33A058BFL,0xD0E10CCEL,0x337B8384L,0xE6ACABDFL,0x859908CEL,0UL,0xE6ACABDFL},{0x8241A5A2L,4UL,4294967287UL,0xD0E10CCEL,4UL,1UL,7UL,4294967293UL,0x497C0FE7L,4294967289UL}},{{0x0131F111L,4294967293UL,7UL,0x46EC3386L,0x9E4DAAFAL,0xFA8226C0L,0xD3F572FFL,0xE6ACABDFL,0x89BF26B8L,1UL},{0UL,0x497C0FE7L,6UL,0x0131F111L,0x35402FADL,4294967295UL,0x314219F7L,1UL,1UL,0x0131F111L},{0x8241A5A2L,1UL,4294967295UL,0xFB3F690AL,4UL,6UL,7UL,0x0131F111L,0xD0E10CCEL,0x859908CEL},{0xE4BB0626L,0xE1133C92L,0xFA8226C0L,0UL,4294967295UL,7UL,0xC462093FL,4UL,4294967295UL,0x33A058BFL},{0xC462093FL,0x4F741591L,1UL,4UL,4294967287UL,4294967287UL,4UL,1UL,0x4F741591L,0xC462093FL},{0UL,0xEC619747L,0x337B8384L,2UL,0xF6F25651L,0x2A789651L,1UL,0xE4BB0626L,0x8241A5A2L,0x3F43D38FL},{4UL,4UL,7UL,0xEC619747L,0xF6F25651L,0UL,0x9E4DAAFAL,0x6D715551L,0x12B3B05DL,0xC462093FL},{0xF6F25651L,1UL,0xD0E10CCEL,0xFCBC35C1L,4294967287UL,0x497C0FE7L,0xF6F25651L,0x859908CEL,0x3F43D38FL,0x33A058BFL}},{{4294967295UL,0x4C0BA0DEL,0xA2B9481BL,4294967287UL,4294967295UL,0x4E69FB23L,7UL,4UL,0x337B8384L,0x859908CEL},{0xCC3156B8L,4294967295UL,0UL,0x6D715551L,4UL,0xFA8226C0L,1UL,0x33A058BFL,0xFA8226C0L,0x0131F111L},{0x314219F7L,1UL,7UL,0x314219F7L,0x35402FADL,4294967289UL,0UL,0x8241A5A2L,0xD50DEC83L,1UL},{1UL,0UL,0x3F43D38FL,0xFB3F690AL,0x9E4DAAFAL,0x4F741591L,1UL,0xCC3156B8L,0x2A789651L,4294967289UL},{0xE1133C92L,0xE6ACABDFL,0xFA8226C0L,4294967295UL,4UL,0xEC9B3457L,4UL,4294967295UL,0xFA8226C0L,0xE6ACABDFL},{0x4C0BA0DEL,0x4F741591L,0x859908CEL,0xC462093FL,0xD0E10CCEL,0xFB3F690AL,0x6D715551L,4294967295UL,4294967295UL,0xD0E10CCEL},{4294967288UL,4294967289UL,0UL,0x5FAADAE9L,0x8241A5A2L,0x25970E30L,0x12B3B05DL,0x859908CEL,1UL,0UL},{0xD0E10CCEL,0x337B8384L,0xE6ACABDFL,0x859908CEL,0UL,0xE6ACABDFL,4294967295UL,2UL,0x33A058BFL,0xA2B9481BL}}};
    uint32_t *l_3283 = (void*)0;
    uint32_t **l_3335 = (void*)0;
    uint32_t ***l_3334 = &l_3335;
    uint32_t l_3425 = 0x6450A12FL;
    int32_t l_3445 = (-2L);
    uint8_t l_3446[10][3] = {{0xC9L,9UL,9UL},{9UL,246UL,0xA4L},{0xC9L,246UL,0xC9L},{6UL,9UL,0xA4L},{6UL,6UL,9UL},{0xC9L,9UL,9UL},{9UL,246UL,0xA4L},{0xC9L,246UL,0xC9L},{6UL,9UL,0xA4L},{6UL,6UL,9UL}};
    int64_t l_3470[1][8][10] = {{{0x456AC5B946574654LL,0x456AC5B946574654LL,0x2347D5F8F15DC928LL,0x748823D3E651C062LL,0x41C1AC82C31E6D0FLL,0x748823D3E651C062LL,0x2347D5F8F15DC928LL,0x456AC5B946574654LL,0x456AC5B946574654LL,0x2347D5F8F15DC928LL},{0L,0x748823D3E651C062LL,0x6AD301DF990C9924LL,0x6AD301DF990C9924LL,0x748823D3E651C062LL,0L,0x2347D5F8F15DC928LL,0L,0x748823D3E651C062LL,0x6AD301DF990C9924LL},{0x69A4B03D65DE5C50LL,0x456AC5B946574654LL,0x69A4B03D65DE5C50LL,0x6AD301DF990C9924LL,0x2347D5F8F15DC928LL,0x2347D5F8F15DC928LL,0x6AD301DF990C9924LL,0x69A4B03D65DE5C50LL,0x456AC5B946574654LL,0x69A4B03D65DE5C50LL},{0x69A4B03D65DE5C50LL,0L,0x456AC5B946574654LL,0x748823D3E651C062LL,0x456AC5B946574654LL,0L,0x69A4B03D65DE5C50LL,0x69A4B03D65DE5C50LL,0L,0x456AC5B946574654LL},{0L,0x69A4B03D65DE5C50LL,0x69A4B03D65DE5C50LL,0L,0x456AC5B946574654LL,0x748823D3E651C062LL,0x456AC5B946574654LL,0L,0x69A4B03D65DE5C50LL,0x69A4B03D65DE5C50LL},{0x456AC5B946574654LL,0x69A4B03D65DE5C50LL,0x6AD301DF990C9924LL,0x2347D5F8F15DC928LL,0x2347D5F8F15DC928LL,0x6AD301DF990C9924LL,0x69A4B03D65DE5C50LL,0x456AC5B946574654LL,0x69A4B03D65DE5C50LL,0x6AD301DF990C9924LL},{0x748823D3E651C062LL,0L,0x2347D5F8F15DC928LL,0L,0x748823D3E651C062LL,0x6AD301DF990C9924LL,0x6AD301DF990C9924LL,0x748823D3E651C062LL,0L,0x2347D5F8F15DC928LL},{0x456AC5B946574654LL,0x456AC5B946574654LL,0x2347D5F8F15DC928LL,0x748823D3E651C062LL,0x41C1AC82C31E6D0FLL,0x748823D3E651C062LL,0x2347D5F8F15DC928LL,0x456AC5B946574654LL,0x456AC5B946574654LL,0x2347D5F8F15DC928LL}}};
    uint64_t *l_3471 = &g_162;
    int16_t *l_3472 = &g_176;
    uint32_t l_3473 = 6UL;
    int16_t *l_3474 = &g_3095;
    uint32_t *l_3475[9][10][2] = {{{&g_1830,(void*)0},{&l_3473,(void*)0},{&g_1830,(void*)0},{&g_1887,(void*)0},{(void*)0,&g_261},{(void*)0,(void*)0},{(void*)0,(void*)0},{&g_1887,&l_3473},{&g_261,&g_1887},{(void*)0,&g_133}},{{&g_1887,&g_261},{&l_3425,(void*)0},{&g_1887,&g_1830},{(void*)0,(void*)0},{(void*)0,&g_594},{&g_1830,&g_1830},{(void*)0,(void*)0},{&l_3425,&g_594},{(void*)0,&g_133},{&g_594,(void*)0}},{{&g_261,&l_3473},{&g_261,(void*)0},{&g_594,&g_133},{(void*)0,&g_594},{&l_3425,(void*)0},{(void*)0,&g_1830},{&g_1830,&g_594},{(void*)0,(void*)0},{(void*)0,&g_1830},{(void*)0,&l_3473}},{{&g_1887,&g_594},{(void*)0,&g_261},{&l_3473,(void*)0},{&g_594,&g_1887},{&l_3425,(void*)0},{&l_3473,&g_1830},{(void*)0,&g_594},{(void*)0,(void*)0},{(void*)0,&g_133},{&l_3473,&l_3473}},{{&g_1887,&l_3473},{&l_3473,&g_133},{(void*)0,(void*)0},{(void*)0,&g_594},{(void*)0,&g_1830},{&l_3473,(void*)0},{&l_3425,&g_1887},{&g_594,(void*)0},{&l_3473,&g_261},{(void*)0,&g_594}},{{&g_1887,&l_3473},{(void*)0,&l_3473},{&g_133,&l_3473},{(void*)0,(void*)0},{&l_3473,&l_3473},{(void*)0,(void*)0},{&g_1887,&l_3425},{(void*)0,&g_261},{(void*)0,(void*)0},{&g_594,&g_1830}},{{&g_594,(void*)0},{(void*)0,&g_261},{(void*)0,&l_3425},{&g_1887,(void*)0},{(void*)0,&l_3473},{&l_3473,(void*)0},{(void*)0,&l_3473},{&g_133,&l_3473},{(void*)0,&l_3473},{&g_1887,&g_594}},{{(void*)0,&g_261},{&l_3473,(void*)0},{&g_594,&g_1887},{&l_3425,(void*)0},{&l_3473,&g_1830},{(void*)0,&g_594},{(void*)0,(void*)0},{(void*)0,&g_133},{&l_3473,&l_3473},{&g_1887,&l_3473}},{{&l_3473,&g_133},{(void*)0,(void*)0},{(void*)0,&g_594},{(void*)0,&g_1830},{&l_3473,(void*)0},{&l_3425,&g_1887},{&g_594,(void*)0},{&l_3473,&g_261},{(void*)0,&g_594},{&g_1887,&l_3473}}};
    uint16_t l_3476 = 0x4C78L;
    uint64_t ****l_3503 = &g_1208;
    uint64_t l_3583 = 0x5326112D81A76370LL;
    int32_t l_3609 = 7L;
    uint32_t l_3650 = 0x99EAE4CCL;
    int8_t ****l_3664 = &g_1320;
    int32_t *****l_3675 = &g_144;
    uint8_t **l_3677 = &g_205;
    int32_t *l_3680 = (void*)0;
    uint16_t l_3719[5][5][8] = {{{0x9747L,0xDC06L,1UL,0x9747L,0x9D73L,1UL,0xE600L,1UL},{0x5562L,0x9747L,65535UL,0x81FEL,0x8041L,65526UL,0x5562L,65531UL},{0x8041L,65526UL,0x5562L,65531UL,65535UL,65535UL,65531UL,0x5562L},{0xDC06L,0xDC06L,0UL,0x9D73L,1UL,65535UL,1UL,0xE600L},{65535UL,0x4650L,0xBAF1L,0x5562L,0x8041L,0UL,0xF75FL,0xE600L}},{{0x4650L,65535UL,0x0B82L,0x9D73L,0xBAF1L,0x0B82L,1UL,0x5562L},{0x9747L,0UL,0x3586L,65531UL,0xDC06L,0x0FF9L,0xDC06L,65531UL},{0xBAF1L,65531UL,0xBAF1L,0x81FEL,65531UL,65535UL,0x0B82L,1UL},{1UL,0UL,65526UL,0x9747L,0UL,0xABABL,65535UL,65535UL},{0xBAF1L,65535UL,65531UL,65526UL,65535UL,0x9747L,0xF419L,65535UL}},{{4UL,0xF419L,0x3586L,0UL,0x81FEL,0x7B69L,0x7B69L,0x81FEL},{0xF75FL,65535UL,65535UL,0xF75FL,4UL,0x0FF9L,0x5562L,0xABABL},{0xF419L,0xF75FL,1UL,0x5562L,0x0B82L,0xDC06L,0xF419L,65535UL},{0x3586L,0xF75FL,65535UL,1UL,65535UL,0x0FF9L,1UL,0xF419L},{0x81FEL,65535UL,1UL,0UL,0x0FF9L,0x7B69L,0xBAF1L,0x7B69L}},{{0x0B82L,0xF419L,0UL,0xF419L,0x0B82L,0x9747L,0x81FEL,0x5562L},{65535UL,65535UL,0xABABL,4UL,0UL,0xABABL,0x0FF9L,0xF419L},{0xF75FL,0UL,0xABABL,65535UL,65535UL,0x3586L,0x81FEL,1UL},{0UL,0xCC28L,0UL,0x5562L,65535UL,1UL,0xBAF1L,0xBAF1L},{0xABABL,65526UL,1UL,1UL,65526UL,0xABABL,1UL,0x81FEL}},{{0xBAF1L,0x0FF9L,65535UL,65526UL,1UL,0UL,0xF419L,0x0FF9L},{0UL,0xF419L,1UL,65526UL,0x81FEL,0x4650L,0x5562L,0x81FEL},{1UL,0x81FEL,65535UL,1UL,0UL,0x0FF9L,0x7B69L,0xBAF1L},{0xF419L,1UL,0x3586L,0x5562L,0x3586L,1UL,0xF419L,1UL},{0x0B82L,0xF75FL,65531UL,65535UL,65535UL,0x8041L,65535UL,0xF419L}}};
    uint8_t l_3720 = 0x98L;
    int32_t l_3744 = 0L;
    int8_t l_3746 = (-6L);
    int16_t l_3778[4][6] = {{0xFE61L,0x594CL,0xFE61L,0xFE61L,0x594CL,0xFE61L},{0xFE61L,0x594CL,0xFE61L,0xFE61L,0x594CL,0xFE61L},{0xFE61L,0x594CL,0xFE61L,0xFE61L,0x594CL,0xFE61L},{0xFE61L,0x594CL,0xFE61L,0xFE61L,0x594CL,0xFE61L}};
    int16_t l_3899 = 0x26ABL;
    int32_t l_3903 = 0x10834491L;
    uint16_t l_3906 = 1UL;
    uint32_t l_3939 = 6UL;
    uint64_t l_4003 = 18446744073709551606UL;
    int8_t *****l_4035 = &g_1319;
    uint32_t l_4050 = 1UL;
    int32_t l_4111 = 0x4ED4F7D8L;
    int i, j, k;
    for (i = 0; i < 2; i++)
        l_27[i] = 0x0E4F2007L;
    for (i = 0; i < 1; i++)
    {
        for (j = 0; j < 1; j++)
        {
            for (k = 0; k < 1; k++)
                l_3039[i][j][k] = (-1L);
        }
    }
lbl_2904:
    for (g_4 = 0; (g_4 > 21); g_4 = safe_add_func_uint32_t_u_u(g_4, 8))
    { /* block id: 3 */
        volatile int32_t *l_7 = &g_3[5][0];
        int32_t *l_8 = (void*)0;
        int32_t *l_9 = &g_10[0];
        int32_t *l_11 = &g_10[0];
        int32_t *l_12 = &g_10[0];
        int32_t *l_13 = &g_10[0];
        int32_t *l_14 = &g_10[0];
        int32_t *l_15 = &g_10[0];
        int32_t *l_16 = &g_10[0];
        int32_t *l_17 = (void*)0;
        int32_t *l_18 = &g_10[0];
        int32_t *l_19 = &g_10[0];
        int32_t *l_20 = &g_10[0];
        int32_t *l_21 = (void*)0;
        int32_t *l_22 = &g_10[0];
        int32_t *l_23 = &g_10[0];
        int32_t *l_24 = &g_10[0];
        int32_t *l_25 = &g_10[0];
        int32_t *l_26[2][9][10] = {{{&g_4,&g_10[0],&g_4,&g_4,&g_10[0],&g_4,&g_4,(void*)0,&g_10[1],(void*)0},{&g_10[0],&g_10[0],&g_4,&g_10[0],&g_10[0],(void*)0,&g_10[0],&g_10[0],&g_10[1],&g_10[0]},{&g_10[0],&g_10[0],&g_10[0],&g_10[1],&g_10[0],&g_4,&g_10[0],&g_10[0],&g_10[0],(void*)0},{&g_4,&g_10[0],&g_10[0],&g_10[0],(void*)0,&g_4,&g_4,(void*)0,&g_10[0],&g_10[1]},{&g_10[0],&g_4,&g_4,(void*)0,&g_10[1],(void*)0,&g_4,&g_4,&g_10[0],&g_10[0]},{&g_10[0],&g_10[0],&g_10[0],&g_10[0],&g_4,&g_10[0],&g_10[1],&g_10[0],&g_4,&g_4},{&g_4,&g_10[0],&g_10[0],&g_10[0],&g_10[0],&g_10[0],&g_10[0],(void*)0,&g_10[0],&g_4},{&g_10[1],&g_10[0],&g_4,(void*)0,&g_10[0],&g_10[0],&g_10[0],&g_10[1],&g_10[0],&g_4},{(void*)0,&g_10[1],&g_10[0],&g_10[0],&g_10[0],&g_10[0],&g_10[0],&g_10[0],&g_10[0],&g_10[0]}},{{&g_10[0],&g_10[0],&g_10[1],&g_4,(void*)0,&g_4,&g_4,(void*)0,&g_10[0],&g_10[0]},{&g_10[0],&g_10[0],&g_10[0],&g_10[0],(void*)0,(void*)0,&g_4,&g_10[0],&g_10[1],&g_4},{&g_4,&g_10[0],(void*)0,&g_10[0],&g_10[0],&g_10[1],&g_10[0],&g_10[1],(void*)0,&g_4},{&g_10[0],&g_10[1],(void*)0,&g_10[0],&g_10[0],&g_10[0],&g_10[0],&g_10[0],&g_10[0],&g_10[0]},{&g_4,&g_10[0],(void*)0,&g_10[0],&g_4,&g_10[1],&g_10[0],&g_10[0],&g_10[0],(void*)0},{(void*)0,&g_10[0],&g_10[0],&g_10[0],&g_10[0],(void*)0,&g_10[1],&g_4,&g_4,(void*)0},{(void*)0,&g_10[0],&g_10[0],&g_10[0],&g_4,&g_10[1],&g_4,&g_4,(void*)0,&g_10[0]},{&g_10[0],&g_4,&g_4,(void*)0,&g_10[0],&g_10[0],&g_4,&g_10[0],&g_4,&g_4},{&g_10[1],(void*)0,(void*)0,&g_10[0],&g_10[0],(void*)0,(void*)0,&g_10[1],&g_4,&g_4}}};
        uint16_t * const l_1838 = &l_36[3];
        uint16_t *l_2144 = &g_215[4];
        int i, j, k;
        (*l_7) = g_3[3][2];
        --l_28;
        for (l_28 = 0; (l_28 != 27); l_28 = safe_add_func_int8_t_s_s(l_28, 9))
        { /* block id: 8 */
            uint16_t *l_33 = &g_34;
            int32_t l_35 = 1L;
            l_36[3] ^= (((*l_33) = g_10[0]) ^ l_35);
            if (g_4)
                goto lbl_2904;
        }
    }
lbl_3570:
    if ((safe_sub_func_int8_t_s_s(l_36[7], (safe_div_func_uint32_t_u_u(((l_27[1] & ((l_36[1] , (safe_mod_func_uint8_t_u_u((((l_2911 & (2L > (g_2854 = 1L))) ^ (((***g_144) != (l_2912 = &l_2911)) >= (((l_2903 |= ((((safe_mod_func_uint16_t_u_u(65529UL, g_468)) ^ l_27[0]) | l_28) != l_36[6])) , l_28) == l_2911))) == 0xBF56A15CL), l_2911))) ^ 1UL)) || (*l_2912)), l_27[1])))))
    { /* block id: 1388 */
        int16_t l_2915[9][1][3] = {{{1L,0x285FL,1L}},{{0x4A2FL,0xDF2AL,0x4A2FL}},{{1L,0x285FL,1L}},{{0x4A2FL,0xDF2AL,0x4A2FL}},{{1L,0x285FL,1L}},{{0x4A2FL,0xDF2AL,0x4A2FL}},{{1L,0x285FL,1L}},{{0x4A2FL,0xDF2AL,0x4A2FL}},{{1L,0x285FL,1L}}};
        int32_t *l_2938 = &g_10[0];
        int32_t l_2946 = (-1L);
        uint64_t **l_2968 = &g_518;
        uint64_t ***l_2967 = &l_2968;
        uint32_t *l_2980 = &g_1830;
        uint32_t **l_2979 = &l_2980;
        uint16_t l_3015 = 65535UL;
        int32_t l_3016 = 0x290CDC35L;
        int16_t **l_3031[4];
        int16_t ***l_3030[7] = {&l_3031[3],(void*)0,&l_3031[3],&l_3031[3],(void*)0,&l_3031[3],&l_3031[3]};
        int32_t *l_3046 = &g_66;
        uint8_t **l_3060 = &g_205;
        int32_t l_3068 = 0x5B931997L;
        int32_t l_3069 = 0x51D45870L;
        int32_t l_3072 = 0xFFA45CE4L;
        int32_t l_3073 = 0xF8042971L;
        int32_t l_3075 = 1L;
        int32_t l_3076 = 0L;
        int32_t l_3077 = (-6L);
        int32_t l_3078 = 0x6A39B61BL;
        int32_t l_3079[1];
        uint8_t l_3083 = 255UL;
        int8_t l_3099 = 0x4EL;
        int8_t ***l_3108 = &g_1321;
        int64_t * const * const l_3126[2][1][4] = {{{&g_1407,&g_1407,&g_1407,&g_1407}},{{&g_1407,&g_1407,&g_1407,&g_1407}}};
        int i, j, k;
        for (i = 0; i < 4; i++)
            l_3031[i] = &l_3020;
        for (i = 0; i < 1; i++)
            l_3079[i] = 0L;
    }
    else
    { /* block id: 1557 */
        int32_t l_3188 = (-6L);
        const int64_t l_3193 = 0xDCF2CB19829E5258LL;
        int32_t l_3205 = 0xDD7A99B3L;
        uint64_t ***l_3250 = (void*)0;
        int32_t l_3259 = 0L;
        int32_t l_3322 = 0xC9044AC8L;
        const uint16_t l_3348 = 65528UL;
        int8_t l_3349 = 0xF3L;
        const uint8_t l_3350 = 0x07L;
        int32_t * const *l_3392 = &l_2912;
        int32_t * const **l_3391[5];
        int32_t * const ***l_3390 = &l_3391[1];
        int8_t ****l_3427 = &g_2565;
        uint32_t *l_3428 = &g_1887;
        int i;
        for (i = 0; i < 5; i++)
            l_3391[i] = &l_3392;
        for (g_488 = 0; (g_488 <= 27); g_488 = safe_add_func_uint64_t_u_u(g_488, 1))
        { /* block id: 1560 */
            int32_t *l_3198[8] = {&g_2825,&g_2825,&g_2825,&g_2825,&g_2825,&g_2825,&g_2825,&g_2825};
            int32_t **l_3197 = &l_3198[6];
            uint32_t *l_3204 = &g_133;
            uint32_t l_3206 = 0xDCD6ABC3L;
            uint32_t *l_3207[1][10];
            int32_t *l_3208 = &l_2903;
            const uint8_t l_3217 = 1UL;
            uint8_t l_3218 = 0UL;
            uint32_t **l_3239 = &l_3207[0][2];
            uint32_t ***l_3238 = &l_3239;
            uint32_t ****l_3237[5][8] = {{&l_3238,&l_3238,(void*)0,&l_3238,(void*)0,&l_3238,&l_3238,&l_3238},{&l_3238,(void*)0,(void*)0,(void*)0,(void*)0,&l_3238,&l_3238,&l_3238},{&l_3238,(void*)0,&l_3238,(void*)0,(void*)0,&l_3238,(void*)0,&l_3238},{&l_3238,&l_3238,&l_3238,&l_3238,(void*)0,(void*)0,(void*)0,&l_3238},{&l_3238,&l_3238,&l_3238,(void*)0,&l_3238,(void*)0,&l_3238,&l_3238}};
            uint64_t ** const l_3247 = &g_518;
            uint64_t ** const *l_3246 = &l_3247;
            uint32_t l_3281 = 0x700BCBCBL;
            int32_t l_3321 = 0x12281F33L;
            int32_t l_3323 = 0L;
            int32_t l_3325[6] = {0L,0L,0L,0L,0L,0L};
            uint32_t l_3383 = 1UL;
            int i, j;
            for (i = 0; i < 1; i++)
            {
                for (j = 0; j < 10; j++)
                    l_3207[i][j] = (void*)0;
            }
            (*l_3208) = (safe_div_func_uint64_t_u_u(((l_3188 , (safe_mod_func_uint32_t_u_u(((*l_2912) ^= (g_594 = (((safe_add_func_int64_t_s_s(((0x3D8782B0L < (l_3205 = ((*g_1137) = (0x16L != ((l_3193 , 0x39FCL) < (0x9CL | (safe_sub_func_int64_t_s_s((+(l_3197 == g_3199[2][0])), (!((*l_3204) = ((*g_3200) , g_3203))))))))))) | 0UL), 1L)) != l_3193) & l_3206))), g_1830))) & (***g_1487)), l_3206));
            for (l_3206 = 0; (l_3206 <= 4); l_3206 += 1)
            { /* block id: 1569 */
                int8_t l_3209 = (-1L);
                uint8_t *l_3241[1][7];
                uint64_t *****l_3258 = &g_1207[4][3];
                int16_t **l_3275 = &l_3020;
                int16_t ***l_3274 = &l_3275;
                uint32_t *l_3302 = &g_261;
                const int64_t **l_3316[1];
                const int64_t ***l_3315 = &l_3316[0];
                int64_t *** const *l_3345 = &g_1487;
                int64_t *** const **l_3346 = &l_3345;
                int64_t *****l_3347[3];
                int32_t l_3354 = 1L;
                int32_t ****l_3388[3];
                uint32_t l_3393 = 0x9F23A0AAL;
                int i, j;
                for (i = 0; i < 1; i++)
                {
                    for (j = 0; j < 7; j++)
                        l_3241[i][j] = &l_3218;
                }
                for (i = 0; i < 1; i++)
                    l_3316[i] = (void*)0;
                for (i = 0; i < 3; i++)
                    l_3347[i] = (void*)0;
                for (i = 0; i < 3; i++)
                    l_3388[i] = &g_145[1];
            }
            for (g_2825 = 0; (g_2825 > (-3)); --g_2825)
            { /* block id: 1665 */
                int32_t l_3409 = 1L;
                int32_t l_3410 = (-10L);
                for (l_3206 = 27; (l_3206 == 24); l_3206--)
                { /* block id: 1668 */
                    ++g_3411;
                }
                if (l_3409)
                    break;
            }
        }
        for (l_3322 = 2; (l_3322 >= 0); l_3322 -= 1)
        { /* block id: 1676 */
            int i;
            return g_215[(l_3322 + 3)];
        }
        if (((safe_sub_func_uint32_t_u_u(((((g_2854 |= (safe_add_func_uint32_t_u_u((safe_mul_func_int8_t_s_s((safe_sub_func_uint16_t_u_u(((safe_mul_func_uint32_t_u_u((safe_unary_minus_func_uint32_t_u(((*l_2912) == l_3425))), (((((*l_3428) = ((((g_3426 = &g_144) == &g_144) , (*g_3351)) == l_3427)) || 9L) != (*l_2912)) || (-1L)))) <= (*g_1300)), 1L)), (**l_3392))), 1L))) , (void*)0) != (**g_1319)) & (****l_3390)), g_133)) && (**g_1299)))
        { /* block id: 1682 */
lbl_3431:
            if (g_3203)
                goto lbl_2904;
        }
        else
        { /* block id: 1684 */
            uint64_t l_3436 = 0xFBFF543DB328434BLL;
            int64_t *****l_3443 = &g_1486;
            int32_t l_3444 = 0xAC74E9B0L;
            (*l_2912) = (**g_3142);
            for (g_299 = (-23); (g_299 > 42); ++g_299)
            { /* block id: 1688 */
                (*g_1137) = (-4L);
            }
            if (g_299)
                goto lbl_3431;
            l_3446[0][1] = ((((((*g_390) <= ((safe_unary_minus_func_int64_t_s((**g_1406))) , (((*l_3428) = (((safe_unary_minus_func_uint32_t_u((((safe_lshift_func_int32_t_s_u(((((*g_1137) = (l_3436 != (safe_sub_func_int64_t_s_s((((safe_mul_func_int32_t_s_s((&g_1486 == ((l_3436 > (safe_add_func_int32_t_s_s(((*l_2912) = (((***g_1487) = (****g_1486)) < 0x381C9C973C498F0ALL)), ((l_27[1] != l_3123[3]) == l_3436)))) , l_3443)), 0L)) < l_3436) || 0x47AD7282L), l_3097)))) <= g_1753[0][1]) <= (*g_205)), 6)) , 0xCCL) | l_3444))) && l_3444) , l_3444)) , l_3436))) != l_3445) && 0xC8L) != l_3436) , 1L);
        }
    }
    if ((safe_add_func_uint64_t_u_u((safe_div_func_int32_t_s_s(((l_3476 = (((g_261 |= (safe_div_func_uint16_t_u_u((*l_2912), ((!(~((*g_205)++))) , ((*l_2912) & (((safe_add_func_uint16_t_u_u(0x7B19L, ((*l_3474) = ((((*l_3472) ^= (safe_sub_func_uint8_t_u_u(1UL, ((safe_add_func_uint8_t_u_u((~(*g_518)), (l_27[1] |= (*l_2912)))) >= (safe_mod_func_uint8_t_u_u((((((safe_mod_func_int64_t_s_s((*l_2912), (((*l_3471) = (((*l_3045) = (safe_mul_func_int32_t_s_s(((&g_994 != (void*)0) >= (****g_1486)), (*l_2912)))) >= l_3470[0][5][5])) & 0x59A1836D362C7321LL))) & (-3L)) , (**g_1406)) & (****g_1486)) ^ 4UL), 0xB8L)))))) ^ 0x3A19L) , l_3473)))) , (*l_2912)) & 0x9AL)))))) > (**g_1299)) || (*l_2912))) < (*l_2912)), (*g_1137))), (*g_1407))))
    { /* block id: 1707 */
        uint16_t l_3493 = 0x6BBEL;
        int8_t l_3506[10] = {0xC7L,4L,0xC7L,0xC7L,4L,0xC7L,0xC7L,4L,0xC7L,0xC7L};
        int32_t l_3517 = 0xB1DF25B1L;
        uint16_t l_3567 = 65531UL;
        uint32_t *l_3584 = (void*)0;
        int32_t l_3585[5][1][2] = {{{0xF0BBDA8CL,0xF0BBDA8CL}},{{0L,0xF0BBDA8CL}},{{0xF0BBDA8CL,0L}},{{0xF0BBDA8CL,0xF0BBDA8CL}},{{0L,0xF0BBDA8CL}}};
        int32_t **l_3602 = &g_1137;
        uint64_t l_3608 = 0xCFB63C71536263FCLL;
        int16_t l_3645 = 0x2653L;
        int8_t l_3676 = 1L;
        uint16_t l_3707 = 0UL;
        int i, j, k;
        for (g_403 = (-17); (g_403 != 7); g_403 = safe_add_func_int64_t_s_s(g_403, 2))
        { /* block id: 1710 */
            int16_t *l_3482 = (void*)0;
            int32_t l_3484 = (-10L);
            int32_t l_3504 = 6L;
            int32_t l_3505 = (-1L);
            uint64_t l_3538 = 0x7FAFB4922804D89FLL;
            int16_t * const *l_3569 = &l_3020;
            int16_t * const **l_3568 = &l_3569;
            int64_t **l_3577 = &g_1407;
            int64_t ***l_3578 = &l_3577;
            uint64_t l_3586 = 0x897C7526D85042DDLL;
            int32_t *l_3653 = &g_65;
            const uint8_t **l_3665[6] = {(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0};
            uint8_t l_3706 = 0x07L;
            int i;
            for (l_3043 = 0; (l_3043 > 40); l_3043 = safe_add_func_uint8_t_u_u(l_3043, 2))
            { /* block id: 1713 */
                int16_t **l_3481 = &l_3472;
                const int64_t l_3496 = 1L;
                int32_t l_3513 = (-6L);
                int8_t l_3548 = 0x47L;
                uint8_t **l_3566 = (void*)0;
                if (((((*g_205) &= (((*l_3481) = &g_403) == l_3482)) , (((+((l_3484 != (safe_sub_func_uint32_t_u_u((safe_add_func_uint32_t_u_u((l_3505 ^= ((((*l_3474) = (**g_371)) || (safe_mod_func_int8_t_s_s((l_3484 <= ((safe_mul_func_uint32_t_u_u(((l_3493--) != l_3496), ((safe_rshift_func_int8_t_s_u(l_3484, 1)) != ((safe_sub_func_uint16_t_u_u((((*l_3471)++) >= (l_3504 &= (((l_3503 == (void*)0) , (**g_3141)) , (*g_518)))), 0xE253L)) == l_3496)))) , 0x2BA683C7L)), 0xD9L))) , 0xB535C736L)), 0x57CF19B9L)), 0x6651D547L))) , l_3496)) , (*g_3426)) == (*g_3426))) <= l_3506[2]))
                { /* block id: 1721 */
                    return l_3496;
                }
                else
                { /* block id: 1723 */
                    uint16_t l_3518 = 65530UL;
                    for (g_1832 = (-4); (g_1832 < 50); g_1832 = safe_add_func_int64_t_s_s(g_1832, 2))
                    { /* block id: 1726 */
                        int32_t *l_3509 = &g_66;
                        int32_t *l_3510 = (void*)0;
                        int32_t *l_3511 = &l_2903;
                        int32_t *l_3512 = &g_66;
                        int32_t *l_3514 = &g_10[0];
                        int32_t *l_3515 = &l_27[1];
                        int32_t *l_3516[10][6][3] = {{{&g_66,&g_66,&l_27[1]},{&g_10[0],&g_66,&l_3504},{&l_3513,&l_2903,(void*)0},{&l_3505,&l_3513,&g_66},{(void*)0,&l_3513,(void*)0},{(void*)0,&l_3504,&l_3504}},{{&l_27[1],&g_4,&l_27[1]},{&l_3513,&g_10[0],&g_66},{&g_113,(void*)0,(void*)0},{&l_3513,&g_4,&l_3505},{&l_27[1],&g_411,&g_66},{(void*)0,&l_3505,&l_3513}},{{(void*)0,&l_27[1],&l_27[1]},{&l_3505,&l_3505,&l_2911},{&l_3513,&g_411,&l_2911},{&g_10[0],&g_4,&g_10[0]},{&g_66,(void*)0,&g_411},{&g_10[0],&g_10[0],&g_10[0]}},{{&g_66,&g_4,&l_2911},{&l_2911,&l_3504,&l_2911},{(void*)0,&l_3513,&l_27[1]},{&l_3513,&l_3513,&l_3513},{(void*)0,&l_2903,&g_66},{&l_2911,&g_66,&l_3505}},{{&g_66,&g_66,(void*)0},{&g_10[0],&l_2911,&g_66},{&g_66,&g_66,&l_27[1]},{&g_10[0],&g_66,&l_3504},{&l_3513,&l_2903,(void*)0},{&l_3505,&l_3513,&g_66}},{{(void*)0,&l_3513,(void*)0},{(void*)0,&l_3504,&l_3504},{&l_27[1],&g_4,&l_27[1]},{&l_3513,&g_10[0],&g_66},{&g_113,(void*)0,(void*)0},{&l_3513,&g_4,&l_3505}},{{&l_27[1],&g_411,&g_66},{(void*)0,&l_3505,&l_3513},{(void*)0,&l_3513,&l_27[1]},{&l_2911,&l_2911,&g_10[0]},{&g_66,(void*)0,&l_27[1]},{(void*)0,&l_3504,&g_66}},{{&l_27[1],&g_113,(void*)0},{&g_66,(void*)0,&g_66},{&g_4,&l_2903,&l_27[1]},{&g_10[0],&g_4,&g_10[0]},{&g_113,&g_66,&l_27[1]},{&l_3505,&l_3513,&l_3513}},{{&g_113,&l_2911,&l_27[1]},{&g_10[0],&l_3513,&l_2911},{&g_4,&l_27[1],&g_113},{&g_66,&g_10[0],&l_2911},{&l_27[1],&l_27[1],&l_3513},{(void*)0,&l_3513,&g_66}},{{&g_66,&l_2911,&g_411},{&l_2911,&l_3513,&l_3513},{&g_411,&g_66,&g_411},{&l_3504,&g_4,&g_66},{(void*)0,&l_2903,&l_3513},{&l_3513,(void*)0,&l_2911}}};
                        int i, j, k;
                        ++l_3518;
                        (*l_3512) &= ((*l_3511) &= (**g_3142));
                        (*l_3512) = l_3518;
                        if (l_3504)
                            continue;
                    }
                }
                if (l_3484)
                    continue;
                for (g_3095 = 3; (g_3095 < 9); ++g_3095)
                { /* block id: 1737 */
                    int32_t l_3525 = 4L;
                    int64_t l_3557 = (-1L);
                    if ((((safe_sub_func_uint16_t_u_u((l_3506[8] , (l_3525 < (safe_lshift_func_uint8_t_u_s((((1UL != (safe_rshift_func_uint16_t_u_u((safe_rshift_func_uint8_t_u_s((safe_div_func_int64_t_s_s((*g_1407), (****g_1486))), (((((safe_mod_func_uint16_t_u_u(((!(((-1L) ^ ((*g_1300) < (((*l_2912) |= (l_3513 = (+l_3538))) >= (safe_sub_func_int64_t_s_s((+((((safe_div_func_int32_t_s_s(((safe_add_func_uint16_t_u_u(((safe_rshift_func_int16_t_s_s(0L, 14)) , l_3504), 0x7199L)) , 1L), (*g_1137))) , l_3496) <= 1L) , l_3496)), l_3506[2]))))) , (-1L))) | (-1L)), l_3525)) | l_3548) & 0x606550B1L) ^ l_3506[2]) == l_3548))), 10))) | 0xF4A9L) <= 0L), l_3548)))), 65530UL)) == 2L) , l_3525))
                    { /* block id: 1740 */
                        int32_t l_3552[6] = {1L,0L,0L,1L,0L,0L};
                        int16_t ***l_3556 = &l_3481;
                        int i;
                        (*g_1137) |= 0x2219C8C4L;
                        (*l_2912) &= 0xC2274E55L;
                        (*l_2912) &= ((!((((safe_rshift_func_uint32_t_u_s(0UL, l_3525)) , (void*)0) == (*g_1486)) , l_3552[2])) > ((*l_3045) = g_448[2][2][0]));
                        l_3505 &= ((((((l_3517 |= (safe_unary_minus_func_uint8_t_u((safe_div_func_uint64_t_u_u(l_3525, ((****g_1486) = l_3525)))))) , l_3556) != ((((*l_2912) = ((l_3557 , ((safe_mul_func_uint8_t_u_u((l_3504 , (safe_mul_func_uint64_t_u_u((safe_sub_func_uint64_t_u_u((*g_390), (((((safe_sub_func_uint16_t_u_u(l_3506[2], (l_3566 == &g_205))) >= l_3538) , l_3493) , l_3552[3]) , l_3548))), l_3493))), 252UL)) >= 1L)) != l_3493)) && l_3567) , l_3568)) == l_3548) , l_3557) != l_3513);
                    }
                    else
                    { /* block id: 1749 */
                        if (g_519)
                            goto lbl_3570;
                        (***g_144) = &l_2911;
                    }
                }
                return (*g_1407);
            }
            if (((((safe_add_func_int8_t_s_s((-6L), (l_3484 , ((safe_div_func_uint64_t_u_u((((((*g_1487) != ((*l_3578) = l_3577)) && 3UL) >= ((l_3584 = &l_3425) != (void*)0)) > 0x4135L), (*l_2912))) && l_3585[4][0][1])))) > 0xBBL) && (*l_2912)) ^ l_3586))
            { /* block id: 1759 */
                uint64_t **l_3597 = (void*)0;
                int32_t l_3600 = 3L;
                int32_t **l_3601[2][8][8] = {{{&l_2912,&l_2912,&l_2912,&l_2912,&l_2912,&l_2912,&l_2912,&l_2912},{&l_2912,&l_2912,(void*)0,&l_2912,&l_2912,(void*)0,&l_2912,&l_2912},{&l_2912,&l_2912,&l_2912,&l_2912,&l_2912,&l_2912,&l_2912,&l_2912},{&l_2912,&l_2912,&l_2912,&l_2912,&l_2912,&l_2912,&l_2912,&l_2912},{&l_2912,&l_2912,(void*)0,&l_2912,&l_2912,(void*)0,&l_2912,&l_2912},{&l_2912,&l_2912,&l_2912,&l_2912,&l_2912,&l_2912,&l_2912,&l_2912},{&l_2912,&l_2912,&l_2912,&l_2912,&l_2912,&l_2912,&l_2912,&l_2912},{&l_2912,&l_2912,(void*)0,&l_2912,&l_2912,(void*)0,&l_2912,&l_2912}},{{&l_2912,&l_2912,&l_2912,&l_2912,&l_2912,&l_2912,&l_2912,&l_2912},{&l_2912,&l_2912,&l_2912,&l_2912,&l_2912,&l_2912,&l_2912,&l_2912},{&l_2912,&l_2912,(void*)0,&l_2912,&l_2912,(void*)0,&l_2912,&l_2912},{&l_2912,&l_2912,&l_2912,&l_2912,&l_2912,&l_2912,&l_2912,&l_2912},{&l_2912,&l_2912,&l_2912,&l_2912,&l_2912,&l_2912,&l_2912,&l_2912},{&l_2912,&l_2912,(void*)0,&l_2912,&l_2912,(void*)0,&l_2912,&l_2912},{&l_2912,&l_2912,&l_2912,&l_2912,&l_2912,&l_2912,&l_2912,&l_2912},{&l_2912,(void*)0,(void*)0,&l_2912,(void*)0,(void*)0,&l_2912,(void*)0}}};
                int64_t ***l_3603 = &l_3577;
                const int64_t *l_3631 = (void*)0;
                const int64_t **l_3630 = &l_3631;
                const int64_t ***l_3629 = &l_3630;
                const int64_t ****l_3628[3];
                int64_t l_3634 = 3L;
                int i, j, k;
                for (i = 0; i < 3; i++)
                    l_3628[i] = &l_3629;
                (*l_2912) ^= (safe_mul_func_int8_t_s_s((safe_add_func_int32_t_s_s((((safe_add_func_int64_t_s_s((safe_lshift_func_int64_t_s_s((-3L), ((**g_179) = ((*g_1407) = (***g_1487))))), (safe_mul_func_uint8_t_u_u(l_3504, ((void*)0 != l_3597))))) | (safe_lshift_func_uint8_t_u_s(l_3493, 6))) != 0xFDDEL), (((*g_1319) = (**g_3351)) == (l_3484 , (void*)0)))), l_3600));
                if (((((l_3601[0][7][2] == l_3602) , (*g_390)) < ((g_176 |= 0x0329L) , ((((l_3603 == (void*)0) > ((safe_sub_func_uint32_t_u_u(g_34, ((**l_3602) && (safe_add_func_uint64_t_u_u((**l_3602), l_3608))))) , (*g_1407))) == l_3609) , (*g_518)))) , l_3538))
                { /* block id: 1765 */
                    int16_t l_3612 = 0xF220L;
                    int32_t l_3613 = (-1L);
                    int64_t * const **l_3627 = (void*)0;
                    int64_t * const *** const l_3626[1] = {&l_3627};
                    uint16_t *l_3640 = (void*)0;
                    uint16_t **l_3639 = &l_3640;
                    int i;
                    if (l_3609)
                        goto lbl_3570;
                    (*g_1137) = (safe_rshift_func_int64_t_s_s(((l_3613 = l_3612) , ((***g_388) > (safe_div_func_int64_t_s_s(((safe_rshift_func_int8_t_s_s((!(((safe_lshift_func_uint32_t_u_s(0xB3C9A080L, ((((l_3586 ^ ((*g_518) , (!(safe_lshift_func_int16_t_s_u((safe_mod_func_int16_t_s_s((((*l_2912) , ((65528UL != (l_3626[0] == (g_3632[0] = l_3628[2]))) | l_3612)) | (*g_1407)), l_3634)), g_1830))))) != 0xB438A9123915437CLL) != 0x66L) >= 1UL))) && (*l_2912)) , 0x8CL)), l_3504)) , 0x112643176F1DE360LL), l_3586)))), (**l_3602)));
                    l_3613 = (safe_mod_func_int8_t_s_s(((safe_mul_func_uint32_t_u_u((((*l_3639) = &g_34) == &l_3493), ((safe_mod_func_uint64_t_u_u((**g_389), (safe_lshift_func_int8_t_s_s(0x59L, l_3645)))) , (+(((((~((0xFAL && (safe_add_func_int32_t_s_s((**g_3141), ((void*)0 == &g_368)))) , l_3613)) & l_3505) , (**l_3602)) < (-1L)) , 0x1481L))))) == (*l_2912)), 0x80L));
                }
                else
                { /* block id: 1772 */
                    l_3650++;
                }
                (*l_3602) = (l_3484 , l_3653);
            }
            else
            { /* block id: 1776 */
                if (g_3203)
                    goto lbl_2904;
            }
            if (((*l_2912) = ((**l_3602) = ((+(+(((safe_add_func_uint32_t_u_u(((0xACL != ((safe_mod_func_uint32_t_u_u((((((safe_rshift_func_uint64_t_u_u(((*g_518)--), ((*g_3351) == l_3664))) , l_3665[2]) != ((~((((*g_205) &= ((((safe_rshift_func_uint32_t_u_u((safe_sub_func_int16_t_s_s((g_3095 = (safe_div_func_uint16_t_u_u((*l_2912), ((safe_mod_func_int8_t_s_s((l_3675 == &g_144), ((**g_1299) ^ g_403))) & 1UL)))), 4L)), l_3676)) < (*l_3653)) , (**g_1299)) <= (**l_3602))) && 0x50L) && (*l_3653))) , l_3677)) | 0x1A30EA99L) | (**l_3602)), 0x289A98CFL)) > (*l_3653))) , (**g_1299)), 0UL)) == (-6L)) < (*l_3653)))) || (*l_2912)))))
            { /* block id: 1784 */
                uint64_t l_3678 = 3UL;
                int32_t *l_3679 = &l_3609;
                l_3680 = ((****l_3675) = (l_3678 , ((*l_3602) = l_3679)));
            }
            else
            { /* block id: 1788 */
                int64_t l_3681 = 8L;
                uint8_t ****l_3691[3];
                uint8_t *****l_3692 = &l_3691[1];
                int32_t l_3709 = (-1L);
                int i;
                for (i = 0; i < 3; i++)
                    l_3691[i] = &g_1612;
                if (((l_3681 >= (*g_1407)) >= (((((*l_3653) = (((((*l_3653) | (safe_add_func_uint64_t_u_u(((+(((**l_3602) , (safe_div_func_uint32_t_u_u((safe_lshift_func_int32_t_s_s((safe_div_func_uint32_t_u_u((((*l_3692) = l_3691[2]) == &g_1612), (**g_3141))), (safe_add_func_uint32_t_u_u((((((safe_lshift_func_uint64_t_u_u((safe_rshift_func_int64_t_s_s((safe_rshift_func_uint64_t_u_u((l_3517 &= ((safe_lshift_func_uint16_t_u_s(((safe_mul_func_uint32_t_u_u(((*l_3653) > (-8L)), 0xAC9F3763L)) != (**l_3602)), 5)) , (*g_518))), 18)), 48)), (*g_518))) , 4L) ^ 0x715253D595C6BCA0LL) && (*g_518)) >= (*g_205)), (-9L))))), 1L))) , (***g_388))) < 1UL), l_3681))) || g_3705) > l_3706) , 4294967289UL)) <= l_3681) == l_3707) , (-10L))))
                { /* block id: 1792 */
                    const int32_t l_3708 = 0xFCBB60CBL;
                    (**l_3602) = l_3708;
                }
                else
                { /* block id: 1794 */
                    if ((**g_3142))
                        break;
                }
                l_3709 = ((**l_3602) = 0x94622990L);
            }
        }
    }
    else
    { /* block id: 1801 */
        uint64_t l_3714 = 0UL;
        uint16_t l_3721 = 1UL;
        int32_t *l_3722 = &g_113;
        uint32_t l_3745 = 0xD5AEEC23L;
        uint8_t l_3772 = 9UL;
        int32_t l_3816 = 1L;
        uint32_t l_3834 = 0x0DC614B3L;
        int32_t l_3839 = 0x2091B19CL;
        int32_t l_3840 = (-5L);
        int32_t l_3841 = 0xD42EF7BCL;
        int32_t l_3842 = 0xF2419624L;
        int32_t l_3844[7] = {0L,0L,0L,0L,0L,0L,0L};
        int32_t *l_3851 = &g_951[5];
        int32_t ** const l_3850 = &l_3851;
        uint32_t *l_3961 = &g_1123;
        int32_t l_3977 = 1L;
        int8_t l_3980 = (-1L);
        uint32_t ***l_4010 = &l_3335;
        int i;
lbl_3748:
        (*l_3722) ^= (safe_mul_func_int16_t_s_s((0xDDL >= (safe_lshift_func_uint16_t_u_s(l_3714, (g_176 == ((**g_3150) < (((l_3714 && ((*l_2912) = (6L <= (safe_lshift_func_uint8_t_u_u((safe_mod_func_uint8_t_u_u(1UL, ((65534UL > (*l_2912)) && l_3719[1][3][5]))), l_3714))))) < l_3714) > l_3720)))))), l_3721));
        if (((*l_2912) = (safe_add_func_uint32_t_u_u((safe_add_func_uint64_t_u_u(((safe_add_func_uint16_t_u_u(((safe_mod_func_int64_t_s_s((safe_div_func_int64_t_s_s((((*l_3722) = (((((((*g_1137) = ((*l_3722) != (*l_2912))) && ((l_3744 ^= ((*l_3722) || ((3L | (*l_2912)) > (safe_sub_func_uint32_t_u_u((**g_1299), (safe_lshift_func_int32_t_s_u(((*l_3722) ^ (((safe_add_func_int32_t_s_s(((((safe_lshift_func_int16_t_s_s(0x46FBL, 0)) >= ((safe_sub_func_int8_t_s_s((*l_3722), 9L)) != 0x4A03DACB4C1927E0LL)) || (*l_3722)) >= (*l_3722)), (*l_2912))) < (*l_2912)) && 0xD7FCL)), g_3743[0]))))))) ^ (*l_3722))) | 3L) < (*l_2912)) , 0x1356DFCDL) , (*l_3722))) == l_3745), l_3714)), (*l_2912))) > 0xE9FDL), l_3746)) , 18446744073709551614UL), (*l_2912))), g_3747))))
        { /* block id: 1808 */
            if (l_3721)
                goto lbl_3748;
lbl_3935:
            (*g_1137) &= (*g_2229);
lbl_3955:
            (*l_3722) = (*l_2912);
        }
        else
        { /* block id: 1812 */
            const int64_t l_3749[9] = {0x3296A0D1561B4087LL,0x3296A0D1561B4087LL,0x3296A0D1561B4087LL,0x3296A0D1561B4087LL,0x3296A0D1561B4087LL,0x3296A0D1561B4087LL,0x3296A0D1561B4087LL,0x3296A0D1561B4087LL,0x3296A0D1561B4087LL};
            uint32_t **l_3757 = &l_3283;
            uint32_t ***l_3756 = &l_3757;
            uint32_t ****l_3755 = &l_3756;
            uint32_t *****l_3754 = &l_3755;
            uint32_t l_3762 = 0x0150A2BAL;
            int32_t *l_3765 = &g_65;
            uint64_t **l_3810[1];
            uint64_t **l_3811 = &g_518;
            int8_t l_3826 = 3L;
            int8_t **l_3832[9][4] = {{&g_1322,&g_1322,&g_1322,&g_1322},{&g_1322,&g_1322,&g_1322,&g_1322},{&g_1322,(void*)0,(void*)0,&g_1322},{&g_1322,&g_1322,(void*)0,&g_1322},{&g_1322,&g_1322,&g_1322,&g_1322},{&g_1322,(void*)0,&g_1322,&g_1322},{&g_1322,&g_1322,&g_1322,&g_1322},{&g_1322,&g_1322,&g_1322,&g_1322},{&g_1322,(void*)0,&g_1322,&g_1322}};
            int32_t l_3837 = 0xB22620CAL;
            int32_t l_3838 = 0xF0E8966FL;
            int32_t l_3843 = 0x7753D8FFL;
            uint32_t l_3845 = 4294967295UL;
            int i, j;
            for (i = 0; i < 1; i++)
                l_3810[i] = (void*)0;
            (****g_3426) = func_61(l_3749[0]);
            if (g_820)
                goto lbl_3753;
lbl_3753:
            for (g_1125 = 0; (g_1125 > 10); g_1125 = safe_add_func_int32_t_s_s(g_1125, 6))
            { /* block id: 1816 */
                int32_t l_3752 = 8L;
                return l_3752;
            }
            (*l_3754) = (void*)0;
            if ((g_456 > ((safe_sub_func_uint8_t_u_u((((*****l_3675) < 0x82C2267BL) >= (((0x6E5593D7L || g_2937) , g_1299) == g_1299)), 0L)) ^ (safe_lshift_func_int16_t_s_s((l_3749[0] >= g_3203), 11)))))
            { /* block id: 1821 */
                uint16_t *l_3764 = &l_3719[1][0][0];
                uint16_t **l_3763 = &l_3764;
                int32_t l_3770 = (-1L);
                int8_t l_3815 = 5L;
                int32_t *l_3819 = &l_3038[0][3][4];
                uint32_t l_3822 = 1UL;
                (****l_3675) = func_45(l_3762, ((*l_3763) = &g_642[6]), l_3765, (g_133++));
                for (g_1944 = 13; (g_1944 > 44); g_1944++)
                { /* block id: 1827 */
                    int32_t l_3780 = 5L;
                }
                (**g_109) = (((*l_3819) = (safe_add_func_uint8_t_u_u((*l_2912), (*l_2912)))) , (safe_lshift_func_uint32_t_u_u((l_3822--), (!l_3815))));
            }
            else
            { /* block id: 1851 */
                uint64_t l_3831 = 0x6B492B1FD246AEB4LL;
                int32_t l_3833 = 0xA075499CL;
                int32_t *l_3835 = (void*)0;
                int32_t *l_3836[6];
                int i;
                for (i = 0; i < 6; i++)
                    l_3836[i] = &g_4;
                l_3826 ^= (*****g_3426);
                (*l_2912) = (((*l_3722) , ((((safe_div_func_int64_t_s_s((*g_1407), ((safe_lshift_func_int16_t_s_s((l_3833 |= ((((((*g_1407) == (l_3831 >= 1UL)) , (18446744073709551606UL == (((((*l_3765) , (void*)0) != (*l_3677)) , (void*)0) == &g_994))) , (**g_1319)) == l_3832[6][3]) < (**g_1299))), l_3834)) & 1UL))) & (*l_3765)) , 0x6465B7B1ED54E7DALL) && 0x280DAD1963ED3243LL)) | (*l_3765));
                l_3845++;
            }
        }
        for (g_261 = 26; (g_261 != 16); g_261 = safe_sub_func_uint64_t_u_u(g_261, 5))
        { /* block id: 1860 */
            int8_t ***l_3852 = &g_1321;
            const int32_t l_3861 = 0x27744A41L;
            const uint32_t l_3881 = 4294967295UL;
            int32_t l_3896 = 0x464BE632L;
            int32_t l_3897 = (-2L);
            int32_t l_3901 = 1L;
            int32_t l_3904 = 0x28DC5086L;
            uint16_t l_3930[2];
            uint64_t l_3970 = 0x1464041FD5F5EBBALL;
            uint8_t l_3981 = 9UL;
            uint64_t * const *l_4024 = &g_518;
            uint64_t l_4036 = 7UL;
            int32_t ***l_4044 = (void*)0;
            uint32_t **l_4061 = &l_3475[3][5][0];
            uint32_t ***l_4060 = &l_4061;
            uint32_t ****l_4059 = &l_4060;
            uint32_t *****l_4058 = &l_4059;
            int i;
            for (i = 0; i < 2; i++)
                l_3930[i] = 0xD2D3L;
            if (((*l_3664) == ((&g_1623[1][2][0] != (((l_3850 != &g_3200) , (8L || 0xA28CL)) , &g_372)) , l_3852)))
            { /* block id: 1861 */
                uint8_t **l_3882[3];
                uint8_t **l_3884 = &g_205;
                int32_t l_3886 = 0L;
                int64_t l_3887 = 1L;
                int32_t l_3898 = 0x1B48D50CL;
                int32_t l_3902 = 0x44C3E147L;
                int32_t l_3905[8] = {0x3914A944L,0x3914A944L,0x3914A944L,0x3914A944L,0x3914A944L,0x3914A944L,0x3914A944L,0x3914A944L};
                uint32_t *l_3921[2][7][1] = {{{&l_2974[7][1]},{&l_2974[2][5]},{&l_2974[7][1]},{&l_2974[7][1]},{&l_2974[2][5]},{&l_2974[7][1]},{&l_2974[7][1]}},{{&l_2974[2][5]},{&l_2974[7][1]},{&l_2974[7][1]},{&l_2974[2][5]},{&l_2974[7][1]},{&l_2974[7][1]},{&l_2974[2][5]}}};
                uint32_t **l_3920 = &l_3921[0][4][0];
                int8_t **l_3954 = &g_1322;
                int i, j, k;
                for (i = 0; i < 3; i++)
                    l_3882[i] = &g_205;
                if ((*l_3722))
                { /* block id: 1862 */
                    uint8_t ***l_3883[10] = {&l_3677,&l_3677,&l_3677,&l_3677,&l_3677,&l_3677,&l_3677,&l_3677,&l_3677,&l_3677};
                    int32_t l_3900[6][1];
                    int i, j;
                    for (i = 0; i < 6; i++)
                    {
                        for (j = 0; j < 1; j++)
                            l_3900[i][j] = 0L;
                    }
                    (*g_1137) = ((0xC6489D99DFF2E360LL ^ (safe_lshift_func_int16_t_s_u((((*l_3722) = ((safe_div_func_int64_t_s_s((safe_rshift_func_int32_t_s_s(((*l_3722) , (((safe_mul_func_uint8_t_u_u(l_3861, (safe_sub_func_uint32_t_u_u(((*l_3722) != (safe_lshift_func_int32_t_s_u((((safe_rshift_func_int16_t_s_s(((*l_3474) = (safe_mod_func_uint64_t_u_u((***g_388), ((safe_mul_func_uint32_t_u_u((g_594 = (~(safe_add_func_uint64_t_u_u((((safe_rshift_func_int32_t_s_u((safe_lshift_func_uint64_t_u_s((((l_3881 & ((g_2097[3][0] = l_3882[0]) == (l_3884 = (void*)0))) < ((((*g_1137) & g_3885) <= 65531UL) < l_3886)) <= (***g_1487)), (*l_3722))), 0)) , 255UL) , l_3861), (*g_518))))), (*l_3722))) , 0xFFC76B0FC544D64CLL)))), l_3861)) <= (*g_205)) != 0xFB17BB8AL), 31))), l_3887)))) ^ l_3881) != (*g_1137))), 2)), 18446744073709551615UL)) | (*l_3722))) || 1L), 15))) > 0xB43C3F35L);
                    for (l_3096 = 24; (l_3096 != (-27)); --l_3096)
                    { /* block id: 1871 */
                        int32_t *l_3891 = &l_3842;
                        int32_t *l_3892 = &l_27[1];
                        int32_t *l_3893 = &l_3609;
                        int32_t *l_3894 = &l_3839;
                        int32_t *l_3895[6][2][3];
                        int i, j, k;
                        for (i = 0; i < 6; i++)
                        {
                            for (j = 0; j < 2; j++)
                            {
                                for (k = 0; k < 3; k++)
                                    l_3895[i][j][k] = &l_3841;
                            }
                        }
                        --l_3906;
                        (**g_2786) = &l_3844[6];
                    }
                    for (l_3609 = 0; (l_3609 == (-20)); --l_3609)
                    { /* block id: 1877 */
                        int32_t l_3917 = 0x0FE4FA58L;
                        uint32_t *l_3919[7];
                        uint32_t **l_3918[10] = {&l_3919[3],&l_3919[3],&l_3919[3],&l_3919[3],&l_3919[3],&l_3919[3],&l_3919[3],&l_3919[3],&l_3919[3],&l_3919[3]};
                        int32_t l_3922 = 0xB345D64FL;
                        int i;
                        for (i = 0; i < 7; i++)
                            l_3919[i] = &l_3745;
                        (*g_2229) = (safe_div_func_uint16_t_u_u((*l_3722), ((0xB3B5CD2FL <= ((l_3904 &= (l_3900[5][0] = 0UL)) & (l_3898 & ((-1L) <= (safe_sub_func_int32_t_s_s((!(((safe_unary_minus_func_uint8_t_u((l_3917 = ((*g_1300) <= ((((void*)0 != &g_368) >= (l_3905[3] = (-1L))) | l_3887))))) , l_3918[4]) != l_3920)), l_3922)))))) , l_3917)));
                        return (*l_3722);
                    }
                    (*g_1137) &= l_3901;
                }
                else
                { /* block id: 1886 */
                    int32_t l_3929 = (-1L);
                    for (l_3906 = 0; (l_3906 == 25); l_3906 = safe_add_func_int16_t_s_s(l_3906, 7))
                    { /* block id: 1889 */
                        int32_t *l_3927 = &l_3901;
                        int32_t *l_3928[4][9] = {{&g_10[0],&l_3904,&g_10[0],&l_3904,&g_10[0],&l_3904,&g_10[0],&l_3904,&g_10[0]},{&g_10[0],&g_10[0],&g_10[0],&g_10[0],&g_10[0],&g_10[0],&g_10[0],&g_10[0],&g_10[0]},{&g_10[0],&l_3904,&g_10[0],&l_3904,&g_10[0],&l_3904,&g_10[0],&l_3904,&g_10[0]},{&g_10[0],&g_10[0],&g_10[0],&g_10[0],&g_10[0],&g_10[0],&g_10[0],&g_10[0],&g_10[0]}};
                        int i, j;
                        (*g_1137) = (*g_2229);
                        (*g_1137) |= ((0x95L & (*l_2912)) < (safe_mod_func_int32_t_s_s((-8L), (0xEBB41873L | (**g_1299)))));
                        l_3930[0]--;
                        (*l_3927) = (**g_2193);
                    }
                    for (g_133 = (-16); (g_133 > 20); g_133 = safe_add_func_int32_t_s_s(g_133, 9))
                    { /* block id: 1897 */
                        int8_t **l_3938 = &g_1322;
                        int32_t l_3952 = 0x184FFA44L;
                        int32_t l_3953 = (-8L);
                        if (g_519)
                            goto lbl_3935;
                        (*l_2912) = (safe_rshift_func_int8_t_s_u((-1L), ((l_3938 != ((((l_3939 , (0UL & (safe_lshift_func_uint64_t_u_s((((((**g_179) = ((safe_lshift_func_uint16_t_u_u(l_3929, 0)) > (safe_lshift_func_uint32_t_u_u((safe_lshift_func_uint16_t_u_u((safe_rshift_func_int64_t_s_s((safe_lshift_func_int8_t_s_u(0x3DL, (*l_3722))), (0xC001L || ((l_3952 != (*l_3722)) > l_3953)))), 0)), (*g_1300))))) != (*l_3722)) , 0x8FCEC14DD673D86FLL) >= l_3887), 37)))) > l_3897) < l_3929) , l_3954)) , l_3898)));
                    }
                }
                if (l_3721)
                    goto lbl_3955;
                if ((*l_3722))
                    continue;
            }
            else
            { /* block id: 1905 */
                int8_t l_3958 = (-1L);
                uint32_t *l_3960 = &l_3745;
                uint32_t **l_3959[6][8][3] = {{{&l_3960,&l_3960,&l_3960},{&l_3960,&l_3960,&l_3960},{&l_3960,&l_3960,&l_3960},{(void*)0,(void*)0,(void*)0},{&l_3960,&l_3960,(void*)0},{&l_3960,&l_3960,&l_3960},{&l_3960,&l_3960,&l_3960},{&l_3960,&l_3960,&l_3960}},{{&l_3960,&l_3960,&l_3960},{&l_3960,&l_3960,(void*)0},{&l_3960,&l_3960,&l_3960},{&l_3960,(void*)0,&l_3960},{&l_3960,&l_3960,&l_3960},{&l_3960,&l_3960,&l_3960},{&l_3960,&l_3960,&l_3960},{&l_3960,(void*)0,&l_3960}},{{&l_3960,&l_3960,&l_3960},{&l_3960,&l_3960,&l_3960},{&l_3960,&l_3960,&l_3960},{&l_3960,&l_3960,&l_3960},{(void*)0,&l_3960,&l_3960},{&l_3960,&l_3960,&l_3960},{&l_3960,&l_3960,&l_3960},{&l_3960,&l_3960,&l_3960}},{{&l_3960,(void*)0,&l_3960},{&l_3960,&l_3960,&l_3960},{&l_3960,&l_3960,&l_3960},{(void*)0,&l_3960,&l_3960},{&l_3960,(void*)0,&l_3960},{&l_3960,&l_3960,&l_3960},{&l_3960,&l_3960,(void*)0},{&l_3960,&l_3960,&l_3960}},{{(void*)0,&l_3960,&l_3960},{&l_3960,&l_3960,&l_3960},{&l_3960,&l_3960,(void*)0},{&l_3960,&l_3960,&l_3960},{&l_3960,&l_3960,&l_3960},{&l_3960,&l_3960,&l_3960},{&l_3960,&l_3960,&l_3960},{(void*)0,&l_3960,&l_3960}},{{&l_3960,&l_3960,&l_3960},{&l_3960,&l_3960,&l_3960},{&l_3960,&l_3960,&l_3960},{&l_3960,(void*)0,&l_3960},{&l_3960,&l_3960,&l_3960},{&l_3960,&l_3960,&l_3960},{(void*)0,&l_3960,&l_3960},{&l_3960,(void*)0,&l_3960}}};
                uint8_t *****l_4017 = &g_1789;
                int8_t *****l_4034 = &l_3664;
                int32_t l_4049 = (-1L);
                int64_t * const *l_4068 = (void*)0;
                int64_t * const **l_4067[8];
                const int8_t *l_4078 = &g_1753[0][9];
                const int8_t **l_4077 = &l_4078;
                int32_t l_4080[9] = {0x8259D91EL,0xA597EC13L,0x8259D91EL,0x8259D91EL,0xA597EC13L,0x8259D91EL,0x8259D91EL,0xA597EC13L,0x8259D91EL};
                int8_t l_4081 = 0xE4L;
                int64_t * const * const *l_4094 = &l_4068;
                int64_t * const * const **l_4093 = &l_4094;
                int64_t * const * const ***l_4092 = &l_4093;
                int8_t l_4100 = (-5L);
                int i, j, k;
                for (i = 0; i < 8; i++)
                    l_4067[i] = &l_4068;
                if (((safe_rshift_func_int16_t_s_u(l_3958, 9)) == ((l_3961 = &l_3745) == (((safe_mod_func_uint32_t_u_u(((safe_rshift_func_int64_t_s_u(((safe_sub_func_int32_t_s_s(l_3958, ((*l_3722) |= (**g_3150)))) <= (safe_lshift_func_uint64_t_u_u((l_3958 || l_3970), (safe_div_func_int32_t_s_s((safe_unary_minus_func_int8_t_s(l_3930[0])), g_882))))), 19)) >= ((safe_add_func_uint64_t_u_u((l_3904 <= l_3881), (-1L))) ^ (*g_1407))), 0x8C9E5065L)) , l_3896) , (void*)0))))
                { /* block id: 1908 */
                    int32_t l_3976 = 0x16EEA2D7L;
                    int32_t *l_3978 = &l_3976;
                    int32_t *l_3979[7];
                    int i;
                    for (i = 0; i < 7; i++)
                        l_3979[i] = &l_3896;
                    (*g_1137) = l_3976;
                    l_3981--;
                    if ((safe_sub_func_uint16_t_u_u((((*g_518) = (safe_add_func_int8_t_s_s(4L, (safe_rshift_func_int16_t_s_s(((***g_1487) | ((safe_mul_func_int64_t_s_s(0x6A04C6311A8F26FBLL, ((*l_3471)--))) , (safe_div_func_uint64_t_u_u(((((((*l_3045) = ((safe_mul_func_uint8_t_u_u((*l_3722), (((((((&l_3981 == (void*)0) & (~9L)) && (safe_mul_func_uint16_t_u_u(0x5FF7L, (safe_mod_func_uint64_t_u_u((*l_3722), l_4003))))) | 0x31L) == 0xBAE6309EL) && l_3970) < l_3958))) | l_3981)) >= (*l_2912)) & (-10L)) , (*g_3142)) != &l_3839), 0x9B49DBA98B362C40LL)))), (*l_2912)))))) || (*g_518)), 1L)))
                    { /* block id: 1914 */
                        uint32_t l_4004[5][8][6] = {{{4294967286UL,0x4FAB2AD6L,4UL,0x4FAB2AD6L,4294967286UL,0UL},{0x121FFABDL,0xE5B998F7L,0x3585E6F3L,0xCEE4AB63L,0xBF0D6D07L,0xEA0B4E93L},{9UL,0x2941DD12L,0xCEE4AB63L,0xE5B998F7L,1UL,0xEA0B4E93L},{0x5346AFE0L,4294967286UL,0x3585E6F3L,5UL,0xA9E0B54EL,0UL},{1UL,0x865F5BA1L,4UL,4UL,0x865F5BA1L,1UL},{0UL,0xA9E0B54EL,5UL,0x3585E6F3L,4294967286UL,0x5346AFE0L},{0xEA0B4E93L,1UL,0xE5B998F7L,0xCEE4AB63L,0x2941DD12L,9UL},{0xEA0B4E93L,0xBF0D6D07L,0xCEE4AB63L,0x3585E6F3L,0xE5B998F7L,0x121FFABDL}},{{0UL,4294967286UL,0x4FAB2AD6L,4UL,0x4FAB2AD6L,4294967286UL},{1UL,0UL,0x6C609564L,5UL,4294967291UL,1UL},{0x5346AFE0L,0x3585E6F3L,0UL,0xE5B998F7L,4294967286UL,0UL},{9UL,0x3585E6F3L,0xA9E0B54EL,0xCEE4AB63L,4294967291UL,0x62A2E80EL},{0x121FFABDL,0UL,0xCEE4AB63L,0x4FAB2AD6L,0x4FAB2AD6L,0xCEE4AB63L},{4294967286UL,4294967286UL,1UL,0x6C609564L,0xE5B998F7L,4294967295UL},{1UL,0xBF0D6D07L,1UL,0UL,0x2941DD12L,9UL},{0x3585E6F3L,9UL,4294967291UL,0x121FFABDL,1UL,0x4FAB2AD6L}},{{1UL,0x121FFABDL,9UL,0UL,4294967286UL,0UL},{0UL,4294967286UL,0UL,9UL,0x121FFABDL,1UL},{0x4FAB2AD6L,1UL,0x121FFABDL,4294967291UL,9UL,0x3585E6F3L},{9UL,0UL,0UL,4294967291UL,0x5346AFE0L,9UL},{0x4FAB2AD6L,0x62A2E80EL,0xBF0D6D07L,9UL,1UL,1UL},{0UL,0xCEE4AB63L,0xCEE4AB63L,0UL,0UL,5UL},{1UL,4294967295UL,0UL,0x121FFABDL,0xEA0B4E93L,0x6C609564L},{0x3585E6F3L,1UL,0x62A2E80EL,0UL,0xEA0B4E93L,0xE5B998F7L}},{{9UL,4294967295UL,0x2941DD12L,0xBF0D6D07L,0UL,9UL},{1UL,0xCEE4AB63L,0x865F5BA1L,0xCEE4AB63L,1UL,0xA9E0B54EL},{5UL,0x62A2E80EL,0xEA0B4E93L,0UL,0x5346AFE0L,4UL},{0x6C609564L,0UL,0UL,0x62A2E80EL,9UL,4UL},{0xE5B998F7L,1UL,0xEA0B4E93L,0x2941DD12L,0x121FFABDL,0xA9E0B54EL},{9UL,4294967286UL,0x865F5BA1L,0x865F5BA1L,4294967286UL,9UL},{0xA9E0B54EL,0x121FFABDL,0x2941DD12L,0xEA0B4E93L,1UL,0xE5B998F7L},{4UL,9UL,0x62A2E80EL,0UL,0UL,0x6C609564L}},{{4UL,0x5346AFE0L,0UL,0xEA0B4E93L,0x62A2E80EL,5UL},{0xA9E0B54EL,1UL,0xCEE4AB63L,0x865F5BA1L,0xCEE4AB63L,1UL},{9UL,0UL,0xBF0D6D07L,0x2941DD12L,4294967295UL,9UL},{0xE5B998F7L,0xEA0B4E93L,0UL,0x62A2E80EL,1UL,0x3585E6F3L},{0x6C609564L,0xEA0B4E93L,0x121FFABDL,0UL,4294967295UL,1UL},{5UL,0UL,0UL,0xCEE4AB63L,0xCEE4AB63L,0UL},{1UL,1UL,9UL,0xBF0D6D07L,0x62A2E80EL,0x4FAB2AD6L},{9UL,0x5346AFE0L,4294967291UL,0UL,0UL,9UL}}};
                        int i, j, k;
                        l_4004[4][6][0]++;
                        return (**g_179);
                    }
                    else
                    { /* block id: 1917 */
                        if (g_403)
                            goto lbl_3748;
                        (*g_1137) = 0x66E16B26L;
                        if ((*l_3722))
                            continue;
                    }
                }
                else
                { /* block id: 1922 */
                    uint8_t l_4007 = 0x0AL;
                    uint32_t ****l_4011[3][5] = {{&l_4010,&l_4010,&l_4010,&l_4010,&l_4010},{&l_4010,&l_4010,&l_4010,&l_4010,&l_4010},{&l_4010,&l_4010,&l_4010,&l_4010,&l_4010}};
                    int i, j;
                    if (l_3970)
                    { /* block id: 1923 */
                        (*g_1137) &= (((*g_3351) = (*g_3351)) == (void*)0);
                        l_4007--;
                        return (*g_180);
                    }
                    else
                    { /* block id: 1928 */
                        (*g_109) = (void*)0;
                        (*l_2912) = 0xA3AE0672L;
                        (****g_3426) = (*g_109);
                    }
                    g_4012 = l_4010;
                    (*g_1137) = (l_3861 & (((safe_rshift_func_uint16_t_u_s(((*l_3722) >= (0x1725L || ((g_4018 = l_4017) == &g_1789))), 14)) , ((safe_mod_func_int16_t_s_s((2L || (safe_lshift_func_uint64_t_u_s(((!((void*)0 == l_4011[2][4])) | (*l_3722)), l_4007))), 65535UL)) , (*g_3248))) != l_4024));
                    for (l_3841 = 0; (l_3841 < 24); l_3841 = safe_add_func_int8_t_s_s(l_3841, 1))
                    { /* block id: 1938 */
                        int32_t l_4033 = (-6L);
                        (*l_3722) = ((-1L) | ((*l_3722) , ((safe_rshift_func_int64_t_s_u((safe_rshift_func_uint8_t_u_s((((**g_179) && (l_3958 , (safe_mod_func_int8_t_s_s((*l_3722), (*l_3722))))) ^ 0xD924L), l_4033)), (((**l_4024) = (((l_4035 = l_4034) == (void*)0) , l_4036)) && 0x1C9F769F4C1C903BLL))) != 0x0A5CL)));
                        (***g_144) = ((0xC909CF5E889B408DLL | (0xB52E70EEA2F1B9C5LL <= ((*g_2229) , (((l_4033 > g_462) , (((**g_1299) < 0xD0B2226CL) <= g_4037)) ^ (safe_lshift_func_uint8_t_u_u(((l_3897 & (*g_1407)) | l_3958), (*l_3722))))))) , (****l_3675));
                        if ((**g_2193))
                            continue;
                        l_4049 &= ((*l_2912) = ((*g_1137) = (safe_mod_func_uint16_t_u_u((((((*l_3474) = ((*l_3722) == l_3981)) , (safe_mod_func_int64_t_s_s(((((void*)0 == l_4044) , ((*l_3722) , (((safe_mul_func_int32_t_s_s(((*l_3722) |= l_4036), l_3958)) , (safe_sub_func_uint8_t_u_u(((void*)0 != &g_3200), 246UL))) && (*l_3722)))) , 0x928DB66387378CB1LL), l_4007))) == l_4007) >= l_4007), l_4007))));
                    }
                }
                if (l_4050)
                { /* block id: 1951 */
                    uint32_t l_4051 = 0x1851ABF8L;
                    uint32_t **l_4057 = &l_3475[6][8][0];
                    uint32_t ***l_4056 = &l_4057;
                    uint32_t ****l_4055 = &l_4056;
                    uint32_t *****l_4054 = &l_4055;
                    int64_t ****l_4069 = (void*)0;
                    int64_t ***l_4071 = (void*)0;
                    int64_t ****l_4070[5] = {&l_4071,&l_4071,&l_4071,&l_4071,&l_4071};
                    int16_t l_4074[4][4][8] = {{{(-10L),1L,1L,0L,0xAF77L,0x00EFL,0xD67BL,0L},{0L,(-1L),0x79CDL,0x3041L,0xAF77L,0xAF77L,0x3041L,0x79CDL},{(-10L),(-10L),0x80B3L,0L,0xC97AL,(-1L),1L,1L},{(-1L),0L,0x00EFL,0xC97AL,(-10L),1L,(-10L),1L}},{{0L,1L,0x80B3L,1L,0L,0x79CDL,0x6046L,1L},{0x80B3L,0x3041L,0x7F09L,(-10L),0L,0xC97AL,0xAF77L,1L},{0xAF77L,0x6046L,0x7F09L,(-8L),(-8L),0x7F09L,0x6046L,0xAF77L},{0L,(-1L),0x80B3L,1L,0x00EFL,0x3041L,(-10L),0x7F09L}},{{0L,(-10L),0x00EFL,0x79CDL,1L,0x3041L,1L,0x79CDL},{0x6046L,(-1L),0x6046L,0x80B3L,0x3041L,0x7F09L,(-10L),0L},{0x79CDL,0x6046L,1L,(-10L),0L,0xC97AL,0x3041L,0x3041L},{0x79CDL,0x3041L,0xAF77L,0xAF77L,0x3041L,0x79CDL,(-1L),0L}},{{0x6046L,1L,0xC97AL,(-1L),1L,1L,0L,(-8L)},{0L,0L,1L,(-1L),0x00EFL,(-1L),1L,0L},{0L,0x00EFL,(-10L),0xAF77L,(-8L),0x80B3L,0L,0x3041L},{0xAF77L,0x7F09L,0L,(-10L),0L,0L,0L,0L}}};
                    const int8_t ***l_4079 = &l_4077;
                    int i, j, k;
                    l_4051--;
                    (**g_2193) = (((l_4080[6] ^= (((****g_1486) ^= (l_4054 == l_4058)) > (((safe_rshift_func_int64_t_s_s((safe_sub_func_uint32_t_u_u(0x4E51D905L, (safe_unary_minus_func_uint32_t_u((((l_4067[1] == (g_4072[2] = (*g_1486))) , l_4074[1][1][5]) | (((safe_add_func_uint8_t_u_u(1UL, (((***l_4035) = (*g_1320)) == ((*l_4079) = l_4077)))) ^ 0x4C643F725762A09ALL) , 0xE94089C681234765LL)))))), (*l_3722))) & (***g_388)) < l_4049))) || l_4081) & (*l_3722));
                }
                else
                { /* block id: 1959 */
                    int8_t l_4101 = 0x39L;
                    int32_t l_4102 = (-1L);
                    if (l_3930[0])
                        break;
                    for (l_2903 = 2; (l_2903 <= 8); l_2903 += 1)
                    { /* block id: 1963 */
                        uint8_t l_4099 = 1UL;
                        int32_t **l_4103 = &l_2912;
                        int i;
                    }
                }
            }
        }
        for (l_3839 = 0; (l_3839 < (-9)); l_3839 = safe_sub_func_uint64_t_u_u(l_3839, 9))
        { /* block id: 1981 */
            int32_t l_4107 = 0xB67B109DL;
            int32_t *l_4108 = (void*)0;
            int32_t *l_4109 = (void*)0;
            int32_t *l_4110[3];
            int16_t l_4112 = 0xBBE6L;
            int i;
            for (i = 0; i < 3; i++)
                l_4110[i] = (void*)0;
            g_4113--;
            if ((*g_2192))
                break;
        }
    }
    for (l_3746 = 0; (l_3746 >= (-13)); --l_3746)
    { /* block id: 1988 */
        const int32_t *l_4128[1];
        const int32_t * const *l_4127 = &l_4128[0];
        int32_t l_4131[8][3] = {{0x38645FB9L,0x38645FB9L,1L},{0L,0xE0A38313L,0L},{0x38645FB9L,0x38645FB9L,1L},{0L,0xE0A38313L,0L},{0x38645FB9L,0x38645FB9L,1L},{0L,0xE0A38313L,0L},{0x38645FB9L,0x38645FB9L,1L},{0L,0xE0A38313L,0L}};
        int32_t l_4134 = 0xE03E6341L;
        int i, j;
        for (i = 0; i < 1; i++)
            l_4128[i] = &l_3038[0][2][2];
        (*g_1137) = ((-1L) != ((*g_372) < (*l_2912)));
        (**g_3141) = (((((void*)0 != &l_3744) | (1L && ((*g_1407) = (-7L)))) , (safe_lshift_func_int16_t_s_u((+((*l_2912) <= ((void*)0 != l_4127))), 11))) < (((l_4131[5][2] = (safe_mod_func_int32_t_s_s(l_4131[5][2], (safe_lshift_func_uint64_t_u_s(((*g_518) = l_4131[1][0]), 47))))) , 0x2BL) < l_4134));
    }
    return (**g_179);
}


/* ------------------------------------------ */
/* 
 * reads : g_109 g_1300 g_1301
 * writes: g_110
 */
static uint32_t  func_37(int32_t * p_38, uint8_t  p_39, uint16_t * p_40, uint16_t * p_41, int16_t  p_42)
{ /* block id: 1014 */
    uint32_t l_2153 = 7UL;
    uint32_t ** const **l_2163 = (void*)0;
    uint32_t ** const ***l_2162[9] = {&l_2163,&l_2163,&l_2163,&l_2163,&l_2163,&l_2163,&l_2163,&l_2163,&l_2163};
    int32_t l_2186 = 0x119EDDF8L;
    int32_t *l_2187 = &g_4;
    int32_t l_2235 = (-1L);
    int32_t l_2240 = 0x3F9536C4L;
    int32_t l_2241 = 0L;
    int32_t l_2244 = 0xE4220A51L;
    int32_t l_2246 = 9L;
    int32_t l_2247 = 0x5037CD66L;
    int32_t l_2261 = 5L;
    int32_t l_2262 = (-4L);
    int32_t l_2263 = 0L;
    uint64_t ***l_2291 = (void*)0;
    int32_t l_2323 = 0x171A767CL;
    int32_t l_2325[6][8][5] = {{{(-4L),0x4B2197F6L,0L,(-3L),0L},{0L,0x5E67AA87L,(-2L),8L,7L},{0L,8L,0x50EF5CABL,(-3L),1L},{0xB56E0F5BL,6L,0x75569637L,0xE3D76832L,0x1AA6FBC5L},{(-4L),0xD2F05EDDL,1L,7L,0x5AEAF26CL},{0x26BFBE5EL,0L,0L,1L,0L},{0L,(-2L),0L,0x628E1677L,0x7AFDFB57L},{0L,0xB56E0F5BL,0L,0L,6L}},{{0L,8L,1L,0x8979E71CL,5L},{0x26BFBE5EL,0xE3D76832L,(-5L),0xB56E0F5BL,0xB56E0F5BL},{0xFD35BACEL,0xD376A32CL,0xFD35BACEL,0xA798A79EL,(-1L)},{0L,0xC0288E7DL,0L,0L,0L},{(-4L),0xECFE40D5L,0L,0x8B3725DAL,1L},{0xC6A76027L,8L,0L,0L,8L},{5L,0L,0xFD35BACEL,1L,0xE95BC18BL},{(-1L),0xCE84A124L,6L,0xCE84A124L,(-1L)}},{{0xB2C0506AL,0xB0D18D2EL,0x046F5AD1L,0xAABF8A8CL,0xCD7042ABL},{0L,0xC0288E7DL,(-5L),0L,0L},{0x50EF5CABL,8L,0L,0xB0D18D2EL,0xCD7042ABL},{0xC6A76027L,0L,(-9L),0L,(-1L)},{0xCD7042ABL,6L,0xE95BC18BL,0xECFE40D5L,0xE95BC18BL},{(-2L),(-2L),0xB56E0F5BL,0xF375E10BL,8L},{0xFD35BACEL,7L,0x388C8FF5L,0xAABF8A8CL,1L},{0xCE84A124L,(-5L),(-8L),0L,0L}},{{0xF89FF819L,7L,0L,(-1L),(-1L)},{(-9L),(-2L),0xC0288E7DL,0L,0L},{1L,6L,(-8L),0xD376A32CL,1L},{8L,0L,6L,(-2L),0L},{0xFD35BACEL,8L,(-6L),0xA798A79EL,0xF89FF819L},{0L,0xC0288E7DL,(-3L),(-2L),0L},{0x0B2125DAL,0xB0D18D2EL,0L,0xD376A32CL,0x50EF5CABL},{0xC6A76027L,0xCE84A124L,0L,0L,0xCE84A124L}},{{1L,0L,0xB2C0506AL,(-1L),0xE95BC18BL},{0xF375E10BL,8L,6L,0L,0L},{0xB2C0506AL,0xECFE40D5L,0L,0xAABF8A8CL,(-4L)},{0xF375E10BL,0xC0288E7DL,0x75569637L,0xF375E10BL,0L},{1L,0xD376A32CL,0L,0xECFE40D5L,0x0B2125DAL},{0xC6A76027L,(-1L),0xC6A76027L,0L,0xF375E10BL},{0x0B2125DAL,6L,1L,0xB0D18D2EL,0xE95BC18BL},{0L,0L,0xB56E0F5BL,0L,0L}},{{0xFD35BACEL,(-1L),1L,0xAABF8A8CL,5L},{8L,(-5L),0xC6A76027L,0xCE84A124L,0L},{1L,1L,0L,1L,1L},{(-9L),0L,0x75569637L,0L,(-2L)},{0xF89FF819L,6L,0L,0x8B3725DAL,1L},{0xCE84A124L,0xF375E10BL,6L,0L,(-2L)},{0xFD35BACEL,0x8B3725DAL,0xB2C0506AL,0xA798A79EL,1L},{(-2L),0xC0288E7DL,0L,0L,0L}}};
    uint64_t *****l_2346 = &g_1207[4][3];
    int64_t l_2347 = 0xAB23A6AAAB930733LL;
    uint8_t *** const *l_2358 = &g_1612;
    uint16_t * const l_2372 = &g_34;
    int8_t l_2373 = 1L;
    uint32_t l_2460 = 0x36B24B0CL;
    int32_t l_2577 = 0xA561BD86L;
    int32_t ***l_2590 = (void*)0;
    int8_t ***l_2604 = &g_1321;
    int32_t l_2605 = 0x4B0C768CL;
    uint8_t l_2610 = 0x2FL;
    uint32_t *l_2688 = (void*)0;
    uint32_t **l_2687 = &l_2688;
    uint32_t ***l_2686 = &l_2687;
    int32_t *** const *l_2700 = &l_2590;
    int32_t *** const **l_2699 = &l_2700;
    uint16_t l_2705[5][10][4] = {{{1UL,0x380EL,0UL,0UL},{1UL,0x380EL,1UL,1UL},{0x380EL,0xB537L,1UL,0x881AL},{0x3EAAL,0xA466L,0x380EL,65535UL},{0x1A89L,0x00A7L,0x852DL,0UL},{1UL,65529UL,65535UL,0x3F3AL},{0xD4ABL,1UL,0UL,1UL},{65529UL,1UL,65535UL,0UL},{1UL,0x3EAAL,0x380EL,0x81EBL},{65530UL,0xB537L,1UL,0UL}},{{65530UL,65529UL,0x380EL,0x852DL},{1UL,0UL,65535UL,0UL},{65529UL,1UL,0UL,0x881AL},{0xD4ABL,1UL,65535UL,0x81EBL},{1UL,1UL,0x852DL,65535UL},{0x1A89L,0x380EL,0x380EL,0x1A89L},{0x3EAAL,1UL,1UL,0UL},{0x380EL,1UL,1UL,65535UL},{1UL,0xD4ABL,0UL,65535UL},{1UL,1UL,0UL,0UL}},{{0x3F3AL,1UL,65535UL,0x1A89L},{0xA466L,0x380EL,65535UL,65535UL},{1UL,1UL,1UL,0x81EBL},{0x3EAAL,1UL,65529UL,0x881AL},{65530UL,1UL,65530UL,0UL},{0x1A89L,0UL,0UL,0x852DL},{0xA466L,65529UL,0UL,0UL},{0UL,0xB537L,0UL,0x81EBL},{0xA466L,0x3EAAL,0UL,0UL},{0x1A89L,1UL,65530UL,1UL}},{{65530UL,1UL,65529UL,0x3F3AL},{0x3EAAL,65529UL,1UL,0UL},{1UL,0x00A7L,65535UL,65535UL},{0xA466L,0xA466L,65535UL,0x881AL},{0x3F3AL,0xB537L,0UL,1UL},{1UL,0x380EL,0UL,0UL},{1UL,0x380EL,1UL,1UL},{0x380EL,0xB537L,1UL,0x881AL},{0x3EAAL,0xA466L,0x380EL,65535UL},{0x1A89L,0x00A7L,0x852DL,0UL}},{{1UL,65529UL,65535UL,0x3F3AL},{0xD4ABL,1UL,0UL,1UL},{65529UL,1UL,65535UL,0UL},{1UL,0x3EAAL,0x380EL,0x81EBL},{65530UL,0xB537L,1UL,0UL},{65530UL,65529UL,0x380EL,0x852DL},{1UL,0UL,65535UL,0UL},{65529UL,1UL,0UL,1UL},{0UL,0x380EL,1UL,1UL},{0xAB90L,0xD4ABL,0UL,1UL}}};
    int64_t *****l_2754 = &g_1486;
    int i, j, k;
    (*g_109) = p_38;
    return (*g_1300);
}


/* ------------------------------------------ */
/* 
 * reads : g_1487 g_1406 g_1407 g_712 g_109 g_1319 g_1320 g_1830 g_1887 g_133 g_34 g_952 g_65 g_205 g_138 g_951 g_110 g_411 g_10 g_66 g_261 g_4 l_27
 * writes: g_110 g_1321 g_1830 g_1887 g_133 g_34 g_952 g_65 g_138 g_1944
 */
static int32_t * func_45(int64_t  p_46, uint16_t * const  p_47, int32_t * p_48, uint32_t  p_49)
{ /* block id: 877 */
    uint32_t l_1856 = 0xC17020BCL;
    uint64_t *l_1859 = &g_162;
    int8_t **l_1862 = &g_1322;
    int8_t l_1866 = (-1L);
    int32_t l_1871 = 0xF3FA7C83L;
    int32_t l_1872[9] = {0x99A89738L,0x5677F593L,0x99A89738L,0x99A89738L,0x5677F593L,0x99A89738L,0x99A89738L,0x5677F593L,0x99A89738L};
    int32_t l_1890 = 4L;
    int8_t l_1914[10][10] = {{0x76L,0x76L,0x0AL,(-2L),0x61L,(-2L),0x0AL,0x76L,0x76L,0x0AL},{(-1L),(-2L),8L,8L,(-2L),(-1L),0x0AL,(-1L),(-2L),8L},{0x2FL,0x76L,0x2FL,8L,0x0AL,0x0AL,8L,0x2FL,0x76L,0x2FL},{0x2FL,(-1L),0x76L,(-2L),0x76L,(-1L),0x2FL,0x2FL,(-1L),0x76L},{(-1L),0x2FL,0x2FL,(-1L),0x76L,(-2L),0x76L,(-1L),0x2FL,0x2FL},{0x76L,0x2FL,8L,0x0AL,0x0AL,8L,0x2FL,0x76L,0x2FL,8L},{(-2L),(-1L),0x0AL,(-1L),(-2L),8L,8L,(-2L),(-1L),0x0AL},{0x76L,0x76L,0x0AL,(-2L),0x61L,(-2L),0x0AL,0x76L,0x76L,0x0AL},{(-1L),(-2L),8L,8L,(-2L),(-1L),0x0AL,(-1L),(-2L),8L},{0x2FL,0x76L,0x2FL,8L,0x0AL,0x0AL,8L,0x2FL,0x76L,0x2FL}};
    int64_t l_1922 = 0L;
    int8_t l_1933 = 0xF7L;
    uint32_t l_1965 = 18446744073709551607UL;
    int64_t l_1974[6] = {(-1L),(-1L),(-1L),(-1L),(-1L),(-1L)};
    uint64_t **l_2015[3][4] = {{&g_518,&g_518,&g_518,&g_518},{&g_518,&g_518,&g_518,&g_518},{&g_518,&g_518,&g_518,&g_518}};
    uint64_t ***l_2014 = &l_2015[1][3];
    const uint32_t l_2066 = 4UL;
    int i, j;
    if (p_49)
    { /* block id: 878 */
        int32_t l_1847 = (-1L);
        int32_t l_1865[2];
        int32_t *l_1876 = &l_1871;
        int32_t *l_1877 = &l_1865[1];
        int32_t *l_1878 = &l_1871;
        int32_t *l_1879 = (void*)0;
        int32_t *l_1880 = &l_1872[0];
        int32_t *l_1881 = &g_10[0];
        int32_t *l_1882 = &l_1871;
        int32_t *l_1883 = &l_1871;
        int32_t *l_1884 = &g_10[0];
        int32_t *l_1885[4];
        int64_t l_1886 = 0xCE0BE7390D31A608LL;
        int i;
        for (i = 0; i < 2; i++)
            l_1865[i] = (-1L);
        for (i = 0; i < 4; i++)
            l_1885[i] = &g_10[0];
        if ((safe_mul_func_uint16_t_u_u(((safe_sub_func_int32_t_s_s(0L, 0x8206B47EL)) | ((((((safe_rshift_func_uint64_t_u_u((safe_div_func_uint32_t_u_u(l_1847, (safe_lshift_func_int16_t_s_s((-1L), (safe_rshift_func_int64_t_s_s(p_46, (***g_1487))))))), 53)) ^ (((safe_mod_func_int8_t_s_s((safe_lshift_func_int16_t_s_u(p_49, ((((l_1856 , (safe_lshift_func_int16_t_s_u(((l_1859 != l_1859) | l_1856), 6))) && l_1847) || l_1856) & 255UL))), p_46)) >= p_49) , 1L)) && p_46) != p_46) < l_1847) | p_46)), p_49)))
        { /* block id: 879 */
            int64_t l_1860 = 1L;
            int32_t *l_1861[8][6] = {{&g_10[0],&g_411,&g_10[0],&g_65,&g_65,&g_65},{&g_411,&g_10[0],&g_10[0],&g_411,&g_411,&g_10[0]},{&g_10[0],&g_411,&g_65,&g_411,&g_10[0],&g_65},{&g_411,&g_10[0],&g_65,&g_65,&g_10[0],&g_411},{&g_10[0],&g_411,&g_411,&g_10[0],&g_411,&g_411},{&g_411,&g_10[0],&g_65,&g_65,&g_65,&g_65},{&g_411,&g_411,&g_65,&g_10[0],&g_4,&g_10[0]},{&g_10[0],&g_411,&g_10[0],&g_65,&g_65,&g_65}};
            int i, j;
            (*g_109) = l_1861[6][5];
            l_1866 |= (l_1865[1] = ((((**g_1319) = l_1862) == l_1862) | (g_1830--)));
        }
        else
        { /* block id: 885 */
            int32_t *l_1867 = &g_10[0];
            int32_t *l_1868 = &g_65;
            int32_t *l_1869 = (void*)0;
            int32_t *l_1870[10] = {&l_1865[0],&l_1865[0],&l_1865[0],&l_1865[0],&l_1865[0],&l_1865[0],&l_1865[0],&l_1865[0],&l_1865[0],&l_1865[0]};
            uint16_t l_1873 = 65533UL;
            int i;
            ++l_1873;
        }
        g_1887++;
    }
    else
    { /* block id: 889 */
        int16_t l_1916[6] = {0xBB23L,1L,1L,0xBB23L,1L,1L};
        int32_t *l_1928 = &l_1872[7];
        int32_t l_1935 = (-1L);
        int32_t l_1937 = 0x9F57909EL;
        int32_t l_1938[9];
        const int8_t *l_1985 = &g_1753[0][4];
        const int8_t **l_1984[4] = {&l_1985,&l_1985,&l_1985,&l_1985};
        const int8_t ***l_1983 = &l_1984[1];
        const int8_t ****l_1982 = &l_1983;
        const int8_t **** const *l_1981[7] = {&l_1982,&l_1982,&l_1982,&l_1982,&l_1982,&l_1982,&l_1982};
        const uint64_t *l_2011 = &g_162;
        uint32_t l_2131 = 1UL;
        int i;
        for (i = 0; i < 9; i++)
            l_1938[i] = 0L;
        l_1890 = 0x6693EC5FL;
        for (g_133 = 0; (g_133 > 2); g_133++)
        { /* block id: 893 */
            int16_t *** const l_1913 = (void*)0;
            int32_t l_1931 = 0x355D7121L;
            int32_t l_1932 = 0xAE2260F7L;
            int32_t l_1934 = 0xFE061D7EL;
            int32_t l_1936 = 0x28F959B7L;
            uint64_t * const *l_1954 = (void*)0;
            int32_t *l_2042 = &l_1938[3];
            int32_t l_2078 = 0x21318206L;
            int32_t l_2080[9] = {(-1L),0xBA6FA557L,(-1L),0xBA6FA557L,(-1L),0xBA6FA557L,(-1L),0xBA6FA557L,(-1L)};
            uint8_t **l_2096 = &g_205;
            uint8_t **l_2098 = &g_205;
            int i;
            for (g_34 = (-8); (g_34 < 33); g_34 = safe_add_func_uint16_t_u_u(g_34, 3))
            { /* block id: 896 */
                uint32_t l_1915 = 0x553F7C21L;
                int32_t l_1930[2][8] = {{0x3F3A1A97L,0x42D8C729L,0x42D8C729L,0x3F3A1A97L,0x3F3A1A97L,0x42D8C729L,0x42D8C729L,0x3F3A1A97L},{0x3F3A1A97L,0x42D8C729L,0x42D8C729L,0x3F3A1A97L,0x3F3A1A97L,0x42D8C729L,0x42D8C729L,0x3F3A1A97L}};
                uint64_t l_1939 = 0x0AF378DFF322139DLL;
                uint32_t *l_2053 = &g_1123;
                uint32_t **l_2052 = &l_2053;
                uint32_t ***l_2051 = &l_2052;
                int32_t * const *l_2118 = &l_2042;
                uint32_t *****l_2120 = &g_2119;
                uint32_t *l_2121 = (void*)0;
                int16_t l_2122 = 1L;
                int i, j;
            }
            for (g_952 = 0; (g_952 >= 0); g_952 -= 1)
            { /* block id: 992 */
                const uint16_t l_2141 = 0UL;
                int32_t l_2143 = 0L;
                for (g_65 = 0; (g_65 <= 0); g_65 += 1)
                { /* block id: 995 */
                    int8_t *l_2136[3][5] = {{&g_1125,&g_1753[0][9],&g_1753[0][9],&g_1125,&g_1753[0][9]},{&l_1914[5][7],&l_1914[5][7],&g_1125,&l_1914[5][7],&l_1914[5][7]},{&g_1753[0][9],&g_1125,&g_1753[0][9],&g_1753[0][9],&g_1125}};
                    uint8_t *l_2139 = &g_1944;
                    int32_t l_2142[2];
                    int i, j;
                    for (i = 0; i < 2; i++)
                        l_2142[i] = 0x02720D34L;
                    (*l_2042) ^= (((l_1872[8] = ((4294967291UL != (safe_rshift_func_int16_t_s_u(p_46, 13))) , p_49)) <= (l_1871 = ((*l_2139) = ((**l_2098)--)))) < (((l_2143 = (p_49 < (((+p_49) == (p_46 >= ((g_951[5] != (*g_110)) < ((((((void*)0 == &l_1937) <= l_2141) >= p_49) < (*g_1407)) , g_261)))) & l_2142[0]))) , 4294967292UL) && l_2142[0]));
                }
            }
        }
        for (l_1871 = 1; (l_1871 <= 7); l_1871 += 1)
        { /* block id: 1007 */
            int i;
            (*g_109) = p_48;
        }
    }
    return p_48;
}


/* ------------------------------------------ */
/* 
 * reads : g_34 g_66 g_10 g_65 g_951 g_952 g_205 g_138 g_144 g_145 g_109 g_176 g_642 g_993 g_215 g_162 g_113 g_4 g_820 g_261 g_518 g_519 g_594 g_995 g_1125 g_110 g_1137 g_178 g_133 g_411 g_1406 g_488 g_1407 g_712 g_1321 g_1487 g_108 g_1612 g_1614 g_371 g_372 g_1622 g_1623 g_1486 g_403 g_1753 g_1828
 * writes: g_34 g_65 g_66 g_10 g_951 g_261 g_993 g_488 g_138 g_215 g_403 g_110 g_162 g_178 g_133 g_1125 g_712 g_1137 g_411 g_594 g_1406 g_519 g_1322 g_176 g_1486 g_1612 g_1622 g_145 g_952 g_1789 g_113 g_1830
 */
static int64_t  func_53(uint16_t * p_54, int64_t  p_55)
{ /* block id: 11 */
    uint32_t ** const *l_1823[9];
    uint32_t ** const **l_1822 = &l_1823[2];
    int32_t l_1826 = 0xACDE434BL;
    int16_t *l_1827[6][7][6] = {{{&g_1828,&g_1828,(void*)0,&g_1828,(void*)0,&g_1828},{(void*)0,&g_1828,&g_1828,&g_1828,&g_1828,&g_1828},{(void*)0,(void*)0,&g_1828,&g_1828,&g_1828,&g_1828},{&g_1828,(void*)0,&g_1828,&g_1828,&g_1828,&g_1828},{&g_1828,&g_1828,&g_1828,&g_1828,(void*)0,&g_1828},{&g_1828,&g_1828,&g_1828,&g_1828,&g_1828,&g_1828},{&g_1828,&g_1828,&g_1828,&g_1828,&g_1828,&g_1828}},{{&g_1828,&g_1828,(void*)0,&g_1828,(void*)0,&g_1828},{(void*)0,&g_1828,&g_1828,&g_1828,&g_1828,&g_1828},{(void*)0,(void*)0,&g_1828,&g_1828,&g_1828,&g_1828},{&g_1828,(void*)0,&g_1828,&g_1828,&g_1828,&g_1828},{&g_1828,&g_1828,&g_1828,&g_1828,(void*)0,&g_1828},{&g_1828,&g_1828,&g_1828,&g_1828,&g_1828,&g_1828},{&g_1828,&g_1828,&g_1828,&g_1828,&g_1828,&g_1828}},{{&g_1828,&g_1828,(void*)0,&g_1828,(void*)0,&g_1828},{(void*)0,&g_1828,&g_1828,&g_1828,&g_1828,&g_1828},{(void*)0,(void*)0,&g_1828,&g_1828,&g_1828,&g_1828},{&g_1828,(void*)0,&g_1828,&g_1828,&g_1828,&g_1828},{&g_1828,&g_1828,&g_1828,&g_1828,(void*)0,&g_1828},{&g_1828,&g_1828,&g_1828,&g_1828,&g_1828,&g_1828},{&g_1828,&g_1828,&g_1828,&g_1828,&g_1828,&g_1828}},{{&g_1828,&g_1828,(void*)0,&g_1828,&g_1828,&g_1828},{&g_1828,&g_1828,&g_1828,(void*)0,(void*)0,&g_1828},{&g_1828,&g_1828,(void*)0,&g_1828,&g_1828,&g_1828},{&g_1828,&g_1828,&g_1828,&g_1828,(void*)0,(void*)0},{&g_1828,&g_1828,&g_1828,&g_1828,&g_1828,&g_1828},{&g_1828,&g_1828,(void*)0,&g_1828,&g_1828,&g_1828},{&g_1828,&g_1828,&g_1828,&g_1828,&g_1828,&g_1828}},{{&g_1828,&g_1828,&g_1828,&g_1828,&g_1828,&g_1828},{&g_1828,&g_1828,&g_1828,(void*)0,(void*)0,&g_1828},{&g_1828,&g_1828,(void*)0,&g_1828,&g_1828,&g_1828},{&g_1828,&g_1828,&g_1828,&g_1828,(void*)0,(void*)0},{&g_1828,&g_1828,&g_1828,&g_1828,&g_1828,&g_1828},{&g_1828,&g_1828,(void*)0,&g_1828,&g_1828,&g_1828},{&g_1828,&g_1828,&g_1828,&g_1828,&g_1828,&g_1828}},{{&g_1828,&g_1828,&g_1828,&g_1828,&g_1828,&g_1828},{&g_1828,&g_1828,&g_1828,(void*)0,(void*)0,&g_1828},{&g_1828,&g_1828,(void*)0,&g_1828,&g_1828,&g_1828},{&g_1828,&g_1828,&g_1828,&g_1828,(void*)0,(void*)0},{&g_1828,&g_1828,&g_1828,&g_1828,&g_1828,&g_1828},{&g_1828,&g_1828,(void*)0,&g_1828,&g_1828,&g_1828},{&g_1828,&g_1828,&g_1828,&g_1828,&g_1828,&g_1828}}};
    uint32_t *l_1829 = &g_1830;
    uint8_t *l_1831[6] = {&g_1832,&g_1832,&g_1832,&g_1832,&g_1832,&g_1832};
    int32_t l_1833 = 0L;
    int32_t l_1834 = (-3L);
    int32_t l_1835 = 0xB044B57EL;
    int i, j, k;
    for (i = 0; i < 9; i++)
        l_1823[i] = (void*)0;
    l_1835 ^= (((safe_mul_func_uint64_t_u_u(func_58(p_54, func_61(g_34)), (252UL | (safe_lshift_func_int8_t_s_s((safe_add_func_uint32_t_u_u((((safe_mod_func_uint8_t_u_u((l_1833 = ((((+0x9C119A50EC762A0ALL) < ((l_1822 != (void*)0) == ((safe_div_func_uint32_t_u_u(((*l_1829) = (((l_1826 = l_1826) | 0xC916L) | p_55)), g_1828)) >= 255UL))) != 0UL) , 0x90L)), p_55)) || p_55) > 4UL), l_1834)), 2))))) , l_1826) & l_1834);
    return l_1833;
}


/* ------------------------------------------ */
/* 
 * reads : g_205 g_109 g_110 g_133 g_66 g_10 g_65 g_951 g_952 g_138 g_144 g_145 g_176 g_642 g_993 g_215 g_162 g_113 g_4 g_820 g_261 g_518 g_519 g_594 g_995 g_1125 g_1137 g_178 g_411 g_1406 g_488 g_1407 g_712 g_34 g_1321 g_1487 g_108 g_1612 g_1614 g_371 g_372 g_1622 g_1623 g_1486 g_403 g_1753
 * writes: g_138 g_411 g_261 g_34 g_65 g_66 g_10 g_951 g_993 g_488 g_215 g_403 g_110 g_162 g_178 g_133 g_1125 g_712 g_1137 g_594 g_1406 g_519 g_1322 g_176 g_1486 g_1612 g_1622 g_145 g_952 g_1789 g_113
 */
static uint64_t  func_58(uint16_t * p_59, int32_t * p_60)
{ /* block id: 678 */
    const int8_t *l_1365 = &g_820;
    const int8_t **l_1364[1];
    const int8_t ** const *l_1363 = &l_1364[0];
    const int8_t ** const **l_1362[6] = {&l_1363,&l_1363,&l_1363,&l_1363,&l_1363,&l_1363};
    const int8_t ** const ***l_1366 = &l_1362[5];
    int32_t l_1367 = (-8L);
    int32_t l_1373[10];
    uint8_t l_1374 = 0xEDL;
    const uint64_t **l_1378 = (void*)0;
    int32_t l_1385 = (-5L);
    int16_t l_1389 = (-1L);
    uint16_t l_1390 = 0x7D70L;
    int32_t **l_1411 = &g_1137;
    int32_t l_1412 = 0x6939A7E8L;
    uint8_t **l_1458[3];
    int64_t l_1460[5][2][1];
    const uint32_t *l_1483 = &g_261;
    int64_t ***l_1485 = &g_1406;
    int64_t ****l_1484 = &l_1485;
    int8_t l_1518 = 0xFCL;
    int32_t l_1541[9][5];
    uint32_t **l_1569[1];
    uint64_t l_1631 = 6UL;
    uint16_t l_1657[7][2][7] = {{{0xFF5BL,0xFF5BL,0xFF5BL,0xFF5BL,0xFF5BL,0xFF5BL,0xFF5BL},{0x0D5AL,0x0D5AL,0x0D5AL,0x0D5AL,0x0D5AL,0x0D5AL,0x0D5AL}},{{0xFF5BL,0xFF5BL,0xFF5BL,0xFF5BL,0xFF5BL,0xFF5BL,0xFF5BL},{0x0D5AL,0x0D5AL,0x0D5AL,0x0D5AL,0x0D5AL,0x0D5AL,0x0D5AL}},{{0xFF5BL,0xFF5BL,0xFF5BL,0xFF5BL,0xFF5BL,0xFF5BL,0xFF5BL},{0x0D5AL,0x0D5AL,0x0D5AL,0x0D5AL,0x0D5AL,0x0D5AL,0x0D5AL}},{{0xFF5BL,0xFF5BL,0xFF5BL,0xFF5BL,0xFF5BL,0xFF5BL,0xFF5BL},{0x0D5AL,0x0D5AL,0x0D5AL,0x0D5AL,0x0D5AL,0x0D5AL,0x0D5AL}},{{0xFF5BL,0xFF5BL,0xFF5BL,0xFF5BL,0xFF5BL,0xFF5BL,0xFF5BL},{0x0D5AL,0x0D5AL,0x0D5AL,0x0D5AL,0x0D5AL,0x0D5AL,0x0D5AL}},{{0xFF5BL,0xFF5BL,0xFF5BL,0xFF5BL,0xFF5BL,0xFF5BL,0xFF5BL},{0x0D5AL,0x0D5AL,0x0D5AL,0x0D5AL,0x0D5AL,0x0D5AL,0x0D5AL}},{{0xFF5BL,0xFF5BL,0xFF5BL,0xFF5BL,0xFF5BL,0xFF5BL,0xFF5BL},{0x0D5AL,0x0D5AL,0x0D5AL,0x0D5AL,0x0D5AL,0x0D5AL,0x0D5AL}}};
    const uint64_t **l_1667 = (void*)0;
    int8_t ****l_1673 = (void*)0;
    int64_t l_1674[9];
    uint8_t l_1687[1];
    const uint8_t *l_1691 = &g_138;
    const uint8_t **l_1690 = &l_1691;
    const uint8_t ***l_1689 = &l_1690;
    const uint8_t ****l_1688 = &l_1689;
    uint8_t **l_1708 = (void*)0;
    uint16_t *l_1709 = &g_215[4];
    const uint32_t l_1712 = 7UL;
    uint64_t l_1717 = 0xF53465D2F621EB89LL;
    uint32_t l_1718 = 4294967291UL;
    uint32_t l_1719 = 0x5CC83F75L;
    uint16_t l_1724 = 0xE48AL;
    int32_t l_1725 = (-1L);
    const int32_t l_1730 = 0L;
    int16_t *l_1731 = &g_403;
    uint64_t l_1732[2][9][6] = {{{0UL,1UL,1UL,1UL,0UL,0UL},{1UL,1UL,1UL,1UL,5UL,1UL},{1UL,5UL,1UL,1UL,1UL,1UL},{0UL,0UL,1UL,1UL,1UL,0UL},{1UL,5UL,1UL,1UL,5UL,1UL},{0UL,1UL,1UL,1UL,0UL,0UL},{1UL,1UL,1UL,1UL,5UL,1UL},{1UL,5UL,1UL,1UL,1UL,1UL},{0UL,0UL,1UL,1UL,1UL,0UL}},{{1UL,5UL,1UL,1UL,5UL,1UL},{0UL,1UL,1UL,1UL,0UL,0UL},{1UL,1UL,1UL,1UL,5UL,1UL},{1UL,5UL,1UL,1UL,1UL,1UL},{0UL,0UL,1UL,1UL,1UL,0UL},{1UL,5UL,1UL,1UL,5UL,1UL},{0UL,1UL,1UL,1UL,0UL,0UL},{1UL,1UL,1UL,1UL,5UL,1UL},{1UL,5UL,1UL,1UL,1UL,1UL}}};
    int64_t ****l_1733[7] = {&g_1487,&g_1487,&g_1487,&g_1487,&g_1487,&g_1487,&g_1487};
    int64_t *****l_1734 = &l_1733[0];
    const int64_t **l_1737 = (void*)0;
    const int64_t ***l_1736 = &l_1737;
    const int64_t ****l_1735 = &l_1736;
    int64_t l_1738 = 0x3A2111AC69BC8EC5LL;
    int8_t *l_1739 = &l_1518;
    uint16_t ***l_1740[10][7][1] = {{{&g_368},{&g_368},{&g_368},{&g_368},{&g_368},{(void*)0},{&g_368}},{{&g_368},{&g_368},{&g_368},{&g_368},{&g_368},{&g_368},{&g_368}},{{&g_368},{(void*)0},{&g_368},{&g_368},{&g_368},{&g_368},{&g_368}},{{&g_368},{&g_368},{(void*)0},{(void*)0},{&g_368},{&g_368},{&g_368}},{{&g_368},{&g_368},{&g_368},{&g_368},{(void*)0},{&g_368},{&g_368}},{{&g_368},{&g_368},{&g_368},{&g_368},{&g_368},{&g_368},{&g_368}},{{&g_368},{&g_368},{&g_368},{(void*)0},{&g_368},{&g_368},{&g_368}},{{&g_368},{&g_368},{&g_368},{&g_368},{&g_368},{&g_368},{&g_368}},{{(void*)0},{&g_368},{&g_368},{&g_368},{&g_368},{&g_368},{&g_368}},{{&g_368},{&g_368},{&g_368},{&g_368},{&g_368},{&g_368},{&g_368}}};
    uint64_t l_1751 = 18446744073709551615UL;
    int32_t l_1752 = 0x16231760L;
    uint16_t l_1756 = 65530UL;
    const uint64_t l_1758 = 1UL;
    uint64_t l_1759 = 18446744073709551615UL;
    int32_t l_1767 = 3L;
    uint32_t l_1769 = 18446744073709551615UL;
    uint8_t ****l_1787 = &g_1612;
    uint8_t ****l_1794 = &g_1612;
    int16_t l_1795 = 0x59A0L;
    int64_t ****l_1800 = &l_1485;
    uint64_t l_1811 = 18446744073709551606UL;
    int i, j, k;
    for (i = 0; i < 1; i++)
        l_1364[i] = &l_1365;
    for (i = 0; i < 10; i++)
        l_1373[i] = 0xDDC24C9AL;
    for (i = 0; i < 3; i++)
        l_1458[i] = (void*)0;
    for (i = 0; i < 5; i++)
    {
        for (j = 0; j < 2; j++)
        {
            for (k = 0; k < 1; k++)
                l_1460[i][j][k] = 0x7AB61AFD14BF4C0FLL;
        }
    }
    for (i = 0; i < 9; i++)
    {
        for (j = 0; j < 5; j++)
            l_1541[i][j] = 0xE60ADA54L;
    }
    for (i = 0; i < 1; i++)
        l_1569[i] = (void*)0;
    for (i = 0; i < 9; i++)
        l_1674[i] = 0x3C84B0846DF982D3LL;
    for (i = 0; i < 1; i++)
        l_1687[i] = 0xC1L;
    (*l_1366) = l_1362[5];
    if (((**g_109) = (l_1367 <= ((*g_205) = (!1L)))))
    { /* block id: 682 */
        int32_t *l_1369 = &g_10[0];
        int32_t *l_1370 = &l_1367;
        int32_t *l_1371 = &l_1367;
        int32_t *l_1372[2][8] = {{&g_10[0],&g_411,&g_10[0],&g_10[0],&g_411,&g_10[0],&g_10[0],&g_411},{&g_411,&g_10[0],&g_10[0],&g_411,&g_10[0],&g_10[0],&g_411,&g_10[0]}};
        uint64_t * const *l_1377 = &g_518;
        int16_t l_1379[8][10] = {{1L,1L,1L,1L,1L,1L,1L,1L,1L,1L},{1L,0xF021L,0xF021L,1L,0xF021L,0xF021L,1L,0xF021L,0xF021L,1L},{0xF021L,1L,0xF021L,0xF021L,1L,0xF021L,0xF021L,1L,0xF021L,0xF021L},{1L,1L,1L,1L,1L,1L,1L,1L,1L,1L},{1L,0xF021L,0xF021L,1L,0xF021L,0xF021L,1L,0xF021L,0xF021L,1L},{0xF021L,1L,0xF021L,0xF021L,1L,0xF021L,0xF021L,1L,0xF021L,0xF021L},{1L,1L,1L,1L,1L,1L,1L,1L,1L,1L},{1L,0xF021L,0xF021L,1L,0xF021L,0xF021L,1L,0xF021L,0xF021L,1L}};
        int32_t l_1388 = 0xACF45E02L;
        uint8_t **l_1405 = &g_205;
        uint32_t l_1432 = 0xA9E10DB6L;
        int64_t ** const *l_1459 = &g_1406;
        uint16_t l_1461 = 0x928BL;
        uint16_t l_1489 = 0x6B5EL;
        uint32_t *l_1514 = &g_133;
        uint32_t **l_1513 = &l_1514;
        uint32_t ***l_1512 = &l_1513;
        uint64_t l_1517 = 9UL;
        int32_t l_1520[1];
        uint32_t l_1585[9][7] = {{0x9CDB7F59L,0xC1FD2FACL,0xC6BC179EL,0x1D0D54BCL,0x42BB94EDL,0x1D0D54BCL,0xC6BC179EL},{0xDB01EE5BL,0xDB01EE5BL,0xC6BC179EL,5UL,0xD7D30D4EL,0xAA040C5BL,0xBD082B1DL},{0xCBD8F2EFL,0x43CBB0BFL,0xBF30162EL,0xD7D30D4EL,0xDB01EE5BL,0x51AE204FL,0xC1FD2FACL},{4294967293UL,0x051984BDL,0x1D0D54BCL,0x43CBB0BFL,0xD7D30D4EL,0x2173DF99L,0x051984BDL},{0xC6BC179EL,0x42BB94EDL,0x3B168316L,0x3B168316L,0x42BB94EDL,0xC6BC179EL,0x051984BDL},{0x2173DF99L,0xD7D30D4EL,0x43CBB0BFL,0x1D0D54BCL,0x051984BDL,4294967293UL,0xC1FD2FACL},{0x51AE204FL,0xDB01EE5BL,0xD7D30D4EL,0xBF30162EL,0x43CBB0BFL,0xCBD8F2EFL,0xBD082B1DL},{0xAA040C5BL,0xD7D30D4EL,5UL,0xC6BC179EL,0xDB01EE5BL,0xDB01EE5BL,0xC6BC179EL},{0x1D0D54BCL,0x42BB94EDL,0x1D0D54BCL,4294967288UL,0x2173DF99L,1UL,0xDB01EE5BL}};
        int16_t l_1656 = (-1L);
        int i, j;
        for (i = 0; i < 1; i++)
            l_1520[i] = 0x1E74F851L;
        --l_1374;
        if ((l_1377 != l_1378))
        { /* block id: 684 */
            uint64_t l_1380[7] = {18446744073709551612UL,0x3F4778D9BC1A4CFELL,18446744073709551612UL,18446744073709551612UL,0x3F4778D9BC1A4CFELL,18446744073709551612UL,18446744073709551612UL};
            int32_t l_1383 = 0x68E940D1L;
            int32_t l_1384 = (-2L);
            int32_t l_1386 = 0xF9C1C47CL;
            int32_t l_1387 = 6L;
            int32_t **l_1393 = &l_1372[1][7];
            uint32_t *l_1394 = &g_261;
            int64_t *** const l_1396 = (void*)0;
            int64_t *** const *l_1395 = &l_1396;
            int i;
            ++l_1380[1];
            l_1390--;
            l_1393 = &p_60;
            l_1369 = ((*l_1393) = func_61((((*l_1394) = (l_1367 && g_133)) , (l_1395 != &l_1396))));
        }
        else
        { /* block id: 691 */
            uint32_t *l_1400 = &g_594;
            int64_t ***l_1408 = &g_1406;
            int16_t *l_1409[5][1] = {{&l_1379[0][6]},{(void*)0},{&l_1379[0][6]},{(void*)0},{&l_1379[0][6]}};
            int32_t l_1410[7] = {(-5L),(-5L),(-5L),(-5L),(-5L),(-5L),(-5L)};
            uint32_t *l_1414 = &g_1123;
            uint32_t **l_1413 = &l_1414;
            int32_t l_1415 = 0x0DBE2AE5L;
            int32_t ****l_1428 = &g_145[1];
            int32_t ****l_1429 = (void*)0;
            uint16_t *l_1477 = &g_642[6];
            int8_t *l_1479 = &g_1125;
            uint32_t l_1571 = 4294967291UL;
            const int32_t *l_1576[10] = {&l_1520[0],&l_1520[0],&l_1520[0],&l_1520[0],&l_1520[0],&l_1520[0],&l_1520[0],&l_1520[0],&l_1520[0],&l_1520[0]};
            const int32_t **l_1575[7] = {&l_1576[4],&l_1576[4],&l_1576[4],&l_1576[4],&l_1576[4],&l_1576[4],&l_1576[4]};
            const int32_t ***l_1574 = &l_1575[5];
            const int32_t ****l_1573 = &l_1574;
            const int32_t *****l_1572 = &l_1573;
            int16_t l_1584 = 6L;
            int64_t l_1625 = 0x84F8C7BF4FB22F79LL;
            int i, j;
            l_1415 &= (((*l_1413) = ((((**g_109) = (*p_60)) >= ((safe_unary_minus_func_uint32_t_u(((l_1412 = (((safe_add_func_uint64_t_u_u((((*l_1400) ^= 0x521B6E53L) < (((l_1410[3] = ((safe_mod_func_uint16_t_u_u(((safe_mul_func_int64_t_s_s((g_642[7] == (l_1405 == (void*)0)), l_1373[3])) >= 0x7653L), g_951[5])) | ((((*g_205) |= (((*l_1408) = g_1406) == &g_1407)) < (*l_1369)) != 1UL))) , &p_60) != l_1411)), 0x78751CCEA7DD3018LL)) <= 0xFCL) && l_1410[3])) >= 0UL))) , (*l_1370))) , (void*)0)) != p_60);
            for (g_178 = 0; (g_178 >= 7); ++g_178)
            { /* block id: 702 */
                uint64_t l_1424 = 18446744073709551615UL;
                (*l_1369) &= (safe_mul_func_uint8_t_u_u(255UL, ((safe_add_func_int8_t_s_s((safe_add_func_uint8_t_u_u((((*l_1371) < l_1424) & (((l_1410[2] && (+((safe_mod_func_uint8_t_u_u((l_1428 == (l_1429 = &g_145[4])), (****l_1428))) && (((safe_mul_func_uint32_t_u_u(g_261, g_488)) , (**l_1411)) != 0x64F5L)))) <= (*p_60)) == (**l_1411))), 0x4FL)), l_1432)) | 18446744073709551606UL)));
            }
            if (((((safe_mod_func_uint64_t_u_u(((((((*l_1369) > ((((safe_add_func_int64_t_s_s((((((((safe_mul_func_int8_t_s_s(((*l_1370) , (safe_sub_func_int8_t_s_s(((****l_1428) = 0x59L), (safe_sub_func_int64_t_s_s((l_1460[2][0][0] ^= (!(safe_sub_func_uint64_t_u_u((safe_div_func_uint16_t_u_u((0x1C33L != (safe_sub_func_int16_t_s_s(l_1373[6], (safe_lshift_func_uint8_t_u_u(((g_403 = (g_215[4] != (safe_sub_func_int8_t_s_s((((g_951[5] <= ((((safe_rshift_func_uint64_t_u_u((((safe_sub_func_uint64_t_u_u(((void*)0 == l_1458[0]), 9UL)) , (-1L)) && 0x0C23L), (*g_518))) > (*l_1371)) , (*l_1370)) <= (**g_1406))) , l_1459) == &g_1406), l_1410[4])))) & g_178), 0))))), (*p_59))), 18446744073709551615UL)))), (*l_1371)))))), 0xBBL)) | 0x014CC16EL) != l_1461) != (*l_1370)) && 0UL) <= l_1410[6]) & 0xD7L), (*l_1369))) == g_952) < (*l_1370)) == l_1367)) > (*p_59)) & 65527UL) >= (*g_518)) | 0x63E99975L), (*g_518))) > 5UL) || (**l_1411)) , 0xBACB186AL))
            { /* block id: 709 */
                int16_t l_1469 = (-1L);
                l_1373[3] ^= (((safe_mul_func_uint16_t_u_u((g_4 , ((safe_lshift_func_int64_t_s_u(((**l_1411) = (**l_1411)), ((*g_518) ^= (~(safe_add_func_int64_t_s_s((l_1469 < ((void*)0 == l_1409[1][0])), ((*l_1369) = (*l_1371)))))))) != (safe_mul_func_uint64_t_u_u((g_952 || (((((l_1469 || (&g_368 == (void*)0)) < 0xC6F117107E22732FLL) < l_1469) < (*g_1407)) & 0xCCDAC812L)), l_1412)))), g_951[5])) , &g_1406) == (void*)0);
            }
            else
            { /* block id: 714 */
                uint16_t **l_1472 = (void*)0;
                uint16_t *l_1474 = (void*)0;
                uint16_t **l_1473 = &l_1474;
                uint16_t *l_1476 = (void*)0;
                uint16_t **l_1475[3];
                int8_t *l_1478 = (void*)0;
                int64_t *****l_1488 = &l_1484;
                int32_t l_1515 = 2L;
                uint16_t l_1516 = 0x2E43L;
                int32_t *l_1519[5] = {&g_10[0],&g_10[0],&g_10[0],&g_10[0],&g_10[0]};
                int8_t * const *l_1561 = &g_1322;
                int8_t * const **l_1560 = &l_1561;
                int8_t * const ***l_1559 = &l_1560;
                int8_t * const ****l_1558 = &l_1559;
                uint64_t *l_1564 = &l_1517;
                uint32_t **l_1570 = &l_1514;
                int32_t **** const *l_1577 = &g_144;
                int64_t *** const **l_1636 = (void*)0;
                int64_t *** const **l_1637 = (void*)0;
                int64_t **l_1641 = &g_1407;
                int64_t **l_1642 = &g_1407;
                int64_t *** const l_1640[4][3] = {{&l_1641,&l_1641,&l_1641},{&l_1642,&l_1642,&l_1642},{&l_1641,&l_1641,&l_1641},{&l_1642,&l_1642,&l_1642}};
                int64_t *** const *l_1639 = &l_1640[2][0];
                int64_t *** const **l_1638 = &l_1639;
                int i, j;
                for (i = 0; i < 3; i++)
                    l_1475[i] = &l_1476;
                p_60 = func_61((((((*l_1473) = p_59) != (l_1477 = (void*)0)) < (((((*g_1321) = l_1478) != l_1479) && ((*l_1370) = (!(((**l_1411) = (-1L)) == (g_176 ^= g_261))))) | (((safe_mod_func_int16_t_s_s(((l_1400 != l_1483) != (((*l_1488) = (g_1486 = l_1484)) != &l_1485)), 0x055FL)) > l_1489) != g_215[4]))) , (*l_1370)));
                if ((safe_mod_func_uint16_t_u_u((safe_mul_func_uint64_t_u_u(((((**l_1377) = ((safe_lshift_func_uint16_t_u_s((((safe_add_func_uint32_t_u_u((safe_sub_func_uint32_t_u_u((((((0x85EBL && (l_1517 = ((((safe_lshift_func_uint16_t_u_s(((((safe_div_func_int16_t_s_s((g_403 = ((**l_1411) && (*l_1369))), (safe_lshift_func_int32_t_s_s((safe_add_func_int32_t_s_s((-7L), 0x716224B4L)), ((safe_div_func_int16_t_s_s(((((void*)0 == &l_1408) < (g_176 ^= ((safe_lshift_func_uint8_t_u_s((((void*)0 != l_1512) | 1UL), 5)) , 9L))) >= (**l_1411)), (**l_1411))) , 0x7799FA78L))))) == 0xE48FL) != l_1515) > (*g_110)), l_1516)) <= l_1516) < (-1L)) , 0x5994L))) , (**l_1411)) ^ l_1518) || (**l_1411)) != (-5L)), l_1515)), 0x9819C8BBL)) < l_1516) || (*g_205)), 1)) < (****l_1428))) || (***g_1487)) && (*l_1371)), 18446744073709551609UL)), (**l_1411))))
                { /* block id: 728 */
                    uint32_t l_1521 = 0xD3F5C3BCL;
                    uint64_t **l_1537 = &g_518;
                    uint64_t ***l_1536 = &l_1537;
                    uint16_t l_1540[6] = {0x5AAEL,0x5AAEL,0x5AAEL,0x5AAEL,0x5AAEL,0x5AAEL};
                    int i;
                    (***l_1428) = l_1519[1];
                    l_1521--;
                    (*l_1371) |= (((safe_sub_func_uint64_t_u_u(((*p_59) && (((*l_1479) &= (((((safe_add_func_uint16_t_u_u((((****l_1428) , (safe_sub_func_int16_t_s_s((((~((*g_1407) = (((&l_1484 == (((safe_lshift_func_int16_t_s_s(((****l_1428) <= (safe_add_func_uint64_t_u_u((&p_60 != ((((~((void*)0 != l_1536)) || ((safe_sub_func_int16_t_s_s(0x6630L, ((*p_59) = g_65))) , 0L)) , g_519) , &p_60)), 1L))), g_162)) != (****l_1428)) , (void*)0)) | (*g_110)) || l_1521))) , l_1540[2]) >= (**l_1411)), 1UL))) && 0x8EF263FFL), g_108[8][0][2])) && (*l_1369)) > 0x67FBFF71L) , (*g_1407)) && (**l_1411))) ^ (**l_1411))), (*l_1369))) , g_178) , l_1541[4][1]);
                }
                else
                { /* block id: 735 */
                    (*g_109) = func_61((**l_1411));
                }
                if ((((((g_951[5] > (((((safe_sub_func_uint8_t_u_u(7UL, (-1L))) <= (safe_mod_func_uint8_t_u_u(((safe_add_func_uint32_t_u_u((safe_mul_func_uint8_t_u_u((safe_rshift_func_int64_t_s_s((((**l_1405)++) | ((safe_sub_func_int64_t_s_s((*l_1371), ((*l_1564) = ((**l_1377) = (safe_rshift_func_uint16_t_u_s((l_1558 == (void*)0), (safe_lshift_func_int16_t_s_u((*l_1371), 6)))))))) ^ (safe_mul_func_int32_t_s_s((safe_mul_func_int16_t_s_s((((*l_1512) == (l_1570 = l_1569[0])) , g_113), 0xDC43L)), g_10[0])))), 34)), g_952)), 0xF7A6042CL)) > 0xF359BE5DL), 1L))) <= 9L) > (*p_60)) != l_1571)) , (****l_1428)) , l_1572) == l_1577) ^ (*l_1370)))
                { /* block id: 742 */
                    int32_t l_1578 = (-8L);
                    int32_t l_1579 = 0x230EBC7BL;
                    int32_t l_1580 = (-7L);
                    int32_t l_1581 = 0x98152E82L;
                    int32_t l_1582 = 0x26E336F5L;
                    int32_t l_1583 = (-5L);
                    int32_t l_1629[2][3];
                    int i, j;
                    for (i = 0; i < 2; i++)
                    {
                        for (j = 0; j < 3; j++)
                            l_1629[i][j] = 1L;
                    }
                    l_1585[5][3]--;
                    (*p_60) ^= 0x5ED2621CL;
                    (*p_60) = (safe_div_func_int16_t_s_s((safe_rshift_func_uint64_t_u_s((safe_lshift_func_uint32_t_u_s(((-1L) || (safe_lshift_func_int32_t_s_s((*p_60), (((safe_lshift_func_int16_t_s_u((safe_div_func_int8_t_s_s((safe_lshift_func_uint32_t_u_u(g_4, (l_1578 ^ (safe_sub_func_uint8_t_u_u((safe_mul_func_uint64_t_u_u(((safe_mul_func_int64_t_s_s(((((((***g_1487) = ((-3L) != (safe_sub_func_uint8_t_u_u(((safe_mul_func_int16_t_s_s((**l_1411), ((void*)0 == p_60))) < ((0xFFB482D6L | 9UL) != (*g_205))), (*g_205))))) || (****l_1573)) , (**l_1408)) != (void*)0) | 0x1743C49CL), (**l_1411))) | (**l_1411)), 0UL)), (*g_205)))))), (*l_1371))), 9)) | (-5L)) & 65535UL)))), l_1583)), (**l_1411))), (*p_59)));
                    if ((*p_60))
                    { /* block id: 747 */
                        uint8_t ****l_1613 = &g_1612;
                        const int16_t ***l_1624 = &g_1622;
                        int32_t l_1626 = 0xC3C527A6L;
                        int32_t l_1627 = (-1L);
                        int32_t l_1628 = 0x97B7C770L;
                        int32_t l_1630 = 0x2BF52423L;
                        (**l_1574) = ((***l_1428) = func_61((((((*l_1613) = g_1612) == g_1614) < (+(0L || (~(g_65 && (*l_1371)))))) != (safe_lshift_func_uint8_t_u_u(((*g_371) != (((**g_1487) == ((safe_mod_func_int32_t_s_s((((*l_1624) = g_1622) == (void*)0), g_642[4])) , (void*)0)) , (*g_1622))), (*g_205))))));
                        (*l_1371) ^= (**g_109);
                        l_1631--;
                    }
                    else
                    { /* block id: 754 */
                        return (*g_518);
                    }
                    if (g_176)
                        goto lbl_1660;
                }
                else
                { /* block id: 757 */
                    (**l_1411) = (*g_110);
                }
                if ((safe_mul_func_uint64_t_u_u((((*l_1638) = &g_1487) != &l_1485), (**l_1411))))
                { /* block id: 761 */
                    uint8_t l_1643 = 0UL;
                    (**l_1577) = (void*)0;
                    ++l_1643;
                }
                else
                { /* block id: 764 */
                    int64_t *l_1653 = (void*)0;
                    int32_t l_1654[4][2][4] = {{{1L,1L,(-1L),9L},{5L,8L,5L,(-1L)}},{{5L,(-1L),(-1L),5L},{1L,(-1L),9L,(-1L)}},{{(-1L),8L,9L,9L},{1L,1L,(-1L),9L}},{{5L,8L,5L,(-1L)},{5L,(-1L),(-1L),5L}}};
                    int32_t l_1655 = 0xF70E5975L;
                    int i, j, k;
                    (****g_144) = ((*****l_1577) & ((*p_60) ^ (((((((l_1655 ^= ((*l_1371) || (((safe_div_func_int64_t_s_s(((*g_1407) = ((0x6685L >= (0x60FC37D8L ^ (*g_1137))) , (((safe_sub_func_uint8_t_u_u(0x3EL, ((((((!((**l_1473) = (((safe_div_func_int16_t_s_s(((**l_1411) > (l_1653 != (void*)0)), (**l_1411))) < l_1654[0][0][2]) == 0xD49C60D4FD6CC029LL))) < (*****l_1572)) < l_1654[1][1][0]) , (****g_1486)) != 0x1DFC8EB17CC063E4LL) , (**l_1411)))) , 0x0E83L) , (****g_1486)))), l_1654[0][0][2])) && (*g_110)) > (****l_1573)))) == (**l_1411)) <= l_1656) < l_1654[0][0][2]) > (**l_1411)) ^ (-1L)) ^ 255UL)));
                    (****g_144) ^= 0x118723FBL;
                    --l_1657[4][1][2];
                }
            }
            return (*g_518);
        }
    }
    else
    { /* block id: 775 */
lbl_1660:
        (*g_109) = p_60;
        for (l_1385 = 20; (l_1385 < (-22)); l_1385--)
        { /* block id: 780 */
            uint64_t **l_1668 = &g_518;
            int32_t l_1671 = 0x56600C76L;
            int8_t ****l_1672[2];
            int32_t * const **l_1675 = (void*)0;
            int32_t *l_1676[9][5][5] = {{{&g_113,&g_10[0],(void*)0,&g_10[0],&g_113},{&l_1373[3],(void*)0,&l_1367,&g_4,&g_10[0]},{&g_113,&g_10[1],&l_1373[3],(void*)0,(void*)0},{&l_1367,(void*)0,&l_1373[3],(void*)0,&g_10[0]},{&g_113,(void*)0,&l_1671,&l_1373[0],&g_113}},{{&g_10[0],&l_1367,(void*)0,(void*)0,&l_1367},{&g_4,&g_113,(void*)0,(void*)0,&g_10[0]},{&l_1373[3],&g_10[0],(void*)0,&g_4,&l_1367},{&g_10[0],&g_10[1],&l_1671,&g_10[0],(void*)0},{&g_4,&g_10[0],&l_1373[3],&g_10[0],&g_4}},{{&g_113,&g_113,&l_1373[3],&l_1373[0],&g_4},{&g_4,&l_1367,&l_1367,(void*)0,&l_1367},{&g_10[0],(void*)0,(void*)0,&g_113,&g_4},{&l_1373[3],(void*)0,&l_1671,&g_4,&g_4},{&g_4,&g_10[1],(void*)0,&g_113,(void*)0}},{{&g_10[0],(void*)0,&l_1373[3],(void*)0,&l_1367},{&g_113,&g_10[0],(void*)0,&l_1373[0],&g_10[0]},{&l_1367,&l_1367,&l_1671,&g_10[0],&l_1367},{&g_113,&g_10[0],(void*)0,&g_10[0],&g_113},{&l_1373[3],&l_1373[3],&g_65,&g_113,&l_1671}},{{&g_10[1],&l_1373[2],&g_113,&l_1367,&g_10[1]},{&g_4,&g_10[0],(void*)0,&l_1373[3],&l_1671},{&g_10[0],&l_1367,&g_10[1],&l_1671,&g_10[1]},{&l_1671,(void*)0,(void*)0,&l_1373[3],&l_1367},{&g_113,(void*)0,(void*)0,&l_1367,&l_1373[0]}},{{&l_1671,&g_4,(void*)0,&g_113,&g_4},{&l_1373[0],&l_1373[2],&g_10[1],&g_113,&g_10[1]},{&l_1367,&g_4,(void*)0,&g_4,&l_1367},{&g_10[0],(void*)0,&g_113,&l_1671,&g_113},{&l_1367,(void*)0,&g_65,&g_10[0],&l_1367}},{{&l_1373[0],&l_1367,(void*)0,(void*)0,&g_113},{&l_1671,&g_10[0],&l_1367,&g_113,&l_1367},{&g_113,&l_1373[2],&g_65,(void*)0,&g_10[1]},{&l_1671,&l_1373[3],(void*)0,&g_10[0],&g_4},{&g_10[0],&g_113,&g_65,&l_1671,&l_1373[0]}},{{&g_4,(void*)0,&l_1367,&g_4,&l_1367},{&g_10[1],&g_113,(void*)0,&g_113,&g_10[1]},{&l_1671,&l_1373[3],&g_65,&g_113,&l_1671},{&g_10[1],&l_1373[2],&g_113,&l_1367,&g_10[1]},{&g_4,&g_10[0],(void*)0,&l_1373[3],&l_1671}},{{&g_10[0],&l_1367,&g_10[1],&l_1671,&g_10[1]},{&l_1671,(void*)0,(void*)0,&l_1373[3],&l_1367},{&g_113,(void*)0,(void*)0,&l_1367,&l_1373[0]},{&l_1671,&g_4,(void*)0,&g_113,&g_4},{&l_1373[0],&l_1373[2],&g_10[1],&g_113,&g_10[1]}}};
            uint16_t l_1692 = 0xFA21L;
            int i, j, k;
            for (i = 0; i < 2; i++)
                l_1672[i] = (void*)0;
            l_1373[3] &= ((2UL && ((**l_1411) = (**l_1411))) < (((safe_mul_func_int64_t_s_s((****g_1486), (((4294967295UL >= ((((l_1667 != l_1668) ^ (safe_rshift_func_int32_t_s_u(l_1671, 25))) && ((((255UL == ((l_1672[0] != l_1673) && l_1674[2])) > l_1671) >= g_952) == l_1671)) >= l_1671)) , &l_1411) == l_1675))) == 4294967295UL) , 5L));
            (**l_1411) = (~(!(g_403 &= (safe_mod_func_int32_t_s_s(((*p_59) > (safe_lshift_func_int16_t_s_u((safe_div_func_uint64_t_u_u((safe_mul_func_int16_t_s_s((-6L), l_1687[0])), (((g_642[6] , &g_1612) != (l_1688 = l_1688)) , ((0x8CL && 0x24L) , ((**g_1406) = l_1692))))), 14))), (*p_60))))));
        }
        l_1373[3] ^= ((((void*)0 == &g_1623[3][2][0]) | (safe_lshift_func_uint32_t_u_u((g_113 <= (--(*p_59))), 1))) ^ (safe_div_func_uint32_t_u_u((((**l_1411) = (safe_mod_func_int16_t_s_s((safe_mul_func_int32_t_s_s((safe_rshift_func_int8_t_s_s((safe_sub_func_uint16_t_u_u(((*l_1709) = (safe_unary_minus_func_int16_t_s((18446744073709551613UL && (l_1708 == (*l_1689)))))), ((safe_add_func_int16_t_s_s(l_1712, (l_1717 = (0x0E7DL || ((safe_sub_func_uint64_t_u_u((((safe_lshift_func_uint16_t_u_u(0x1F92L, 12)) != (**l_1411)) < 252UL), (****g_1486))) , 1L))))) & l_1718))), l_1719)), (**g_109))), (-1L)))) > g_642[1]), g_162)));
        if ((safe_mul_func_int64_t_s_s((l_1724 != (((((*l_1739) = (((((*p_60) = (((*g_205) = l_1725) <= (l_1732[0][8][0] &= ((safe_div_func_int32_t_s_s((*g_110), 0xCD0AC30CL)) ^ (safe_add_func_uint64_t_u_u(((*g_518) = (**l_1411)), (((*l_1731) = (l_1730 | 0x9FD5B80FL)) || 0xE983L))))))) , ((*l_1734) = l_1733[2])) != l_1735) != l_1738)) ^ l_1718) , l_1740[5][2][0]) != (void*)0)), 0x6412DD75DCE6B540LL)))
        { /* block id: 800 */
            uint64_t l_1744 = 18446744073709551615UL;
            int32_t * const *l_1755 = &g_110;
            int32_t * const **l_1754 = &l_1755;
            int32_t *l_1757[6];
            int i;
            for (i = 0; i < 6; i++)
                l_1757[i] = &l_1412;
            (*l_1411) = func_61(((g_951[3] = ((**l_1755) = (((*l_1739) = (safe_add_func_int32_t_s_s((safe_unary_minus_func_uint32_t_u(g_820)), ((((l_1744 >= (0x40FC19243831C61ELL < ((*p_59) | (safe_mod_func_uint32_t_u_u(((safe_mod_func_int64_t_s_s((((safe_lshift_func_uint64_t_u_s((l_1751 != l_1752), g_1753[0][4])) , (((*l_1731) &= (((((*g_144) == l_1754) | 0x6E9E8DF6L) == (*g_205)) > (***l_1754))) >= (-10L))) && l_1756), (**l_1411))) , (**l_1755)), (-1L)))))) <= 4294967292UL) , (**l_1755)) || (**l_1411))))) || 1UL))) , l_1758));
            return l_1759;
        }
        else
        { /* block id: 807 */
            int16_t l_1761 = 0x3475L;
            int32_t l_1763[10][3][3] = {{{0x1DC9119CL,0L,1L},{1L,0x7AB32C05L,1L},{0xBC46F730L,(-1L),1L}},{{0x6D9B358DL,0x311C1CD4L,1L},{(-6L),(-1L),0x9640298EL},{0x311C1CD4L,0x9640298EL,(-1L)}},{{(-6L),1L,0x311C1CD4L},{0x6D9B358DL,1L,(-1L)},{0xBC46F730L,1L,0x7AB32C05L}},{{1L,1L,0L},{0x1DC9119CL,1L,(-10L)},{(-1L),1L,(-5L)}},{{0x7AB32C05L,0x9640298EL,0x7A7B0471L},{1L,(-1L),(-5L)},{(-1L),0x311C1CD4L,(-10L)}},{{1L,(-1L),0L},{0L,0x7AB32C05L,0x7AB32C05L},{0L,0L,(-1L)}},{{1L,(-10L),0x311C1CD4L},{(-1L),(-5L),(-1L)},{1L,0x7A7B0471L,0L}},{{(-1L),0x1DC9119CL,(-1L)},{0x6D9B358DL,0x9640298EL,0xBC46F730L},{1L,0x7A7B0471L,0xA8A22DFCL}},{{0xA8A22DFCL,(-1L),0xA8A22DFCL},{0x311C1CD4L,0x7AB32C05L,0xBC46F730L},{1L,(-10L),(-1L)}},{{0x3DBCC46AL,0x6D9B358DL,0L},{(-10L),0L,0x6D9B358DL},{0x3DBCC46AL,(-1L),(-10L)}}};
            int32_t l_1773 = 0xBD0B1905L;
            int i, j, k;
            for (l_1752 = 0; (l_1752 >= 0); l_1752 -= 1)
            { /* block id: 810 */
                int16_t l_1764 = 0x27ADL;
                int32_t l_1766 = (-6L);
                int32_t l_1772 = (-8L);
                for (g_1125 = 0; (g_1125 <= 0); g_1125 += 1)
                { /* block id: 813 */
                    int16_t l_1762 = (-2L);
                    int32_t l_1765 = 0xED48E523L;
                    int32_t l_1768[6][1];
                    int i, j;
                    for (i = 0; i < 6; i++)
                    {
                        for (j = 0; j < 1; j++)
                            l_1768[i][j] = 0xF7066319L;
                    }
                    for (g_34 = 0; (g_34 <= 0); g_34 += 1)
                    { /* block id: 816 */
                        int32_t *l_1760[8][1];
                        int i, j;
                        for (i = 0; i < 8; i++)
                        {
                            for (j = 0; j < 1; j++)
                                l_1760[i][j] = &l_1367;
                        }
                        ++l_1769;
                    }
                    for (g_519 = 0; (g_519 <= 1); g_519 += 1)
                    { /* block id: 821 */
                        int i, j;
                        return g_1753[g_1125][(g_1125 + 9)];
                    }
                    return l_1772;
                }
                return l_1773;
            }
            for (g_261 = 0; (g_261 <= 0); g_261 += 1)
            { /* block id: 830 */
                uint32_t l_1778 = 0x33C87BC1L;
                uint32_t l_1796 = 0UL;
                int32_t l_1799 = 0x861B393DL;
                int32_t l_1807 = (-1L);
                int32_t l_1808 = 0x53FB2A76L;
                int8_t l_1809[7];
                int32_t l_1810 = (-10L);
                int32_t *l_1814 = &g_10[0];
                int i;
                for (i = 0; i < 7; i++)
                    l_1809[i] = 1L;
                for (g_952 = 0; g_952 < 5; g_952 += 1)
                {
                    for (g_162 = 0; g_162 < 2; g_162 += 1)
                    {
                        for (l_1751 = 0; l_1751 < 1; l_1751 += 1)
                        {
                            l_1460[g_952][g_162][l_1751] = 0xDE94D5C7DABC0E09LL;
                        }
                    }
                }
                (*g_1137) &= (safe_add_func_int16_t_s_s(0x47F4L, (*p_59)));
                (*l_1411) = &l_1773;
                for (g_34 = 0; (g_34 <= 0); g_34 += 1)
                { /* block id: 836 */
                    int16_t * const *l_1793 = &l_1731;
                    int16_t * const **l_1792 = &l_1793;
                    int32_t l_1797 = 0x4F0C9A55L;
                    int8_t l_1805 = 0x5DL;
                    for (g_133 = 0; (g_133 <= 0); g_133 += 1)
                    { /* block id: 839 */
                        uint8_t *****l_1788[2][8] = {{&l_1787,&l_1787,&l_1787,&l_1787,&l_1787,&l_1787,&l_1787,&l_1787},{&l_1787,&l_1787,&l_1787,&l_1787,&l_1787,&l_1787,&l_1787,&l_1787}};
                        int i, j, k;
                        if (l_1460[(g_133 + 4)][(g_261 + 1)][g_261])
                            break;
                        (*g_109) = ((safe_rshift_func_uint64_t_u_u(((l_1778 > (*g_1407)) && ((l_1796 |= (((**l_1411) != ((safe_add_func_int16_t_s_s(((safe_mul_func_int64_t_s_s(((*p_59) , 0x9BEF6F68C85E1512LL), (((((safe_rshift_func_int32_t_s_u((safe_lshift_func_int32_t_s_u((((g_1789 = ((((**g_109) |= 0xF0285801L) | 0xF7F4E5B7L) , l_1787)) != (l_1794 = (((l_1763[0][0][2] = (safe_add_func_int16_t_s_s(((*l_1731) = ((void*)0 != l_1792)), 0x74FEL))) | 1UL) , &g_1612))) , l_1795), 12)), 24)) & (**l_1411)) , (*p_59)) || l_1460[(g_133 + 4)][(g_261 + 1)][g_261]) && 0x2665A4CCL))) ^ (*g_1137)), 0xF2ADL)) < l_1773)) != l_1778)) ^ 0xB2A8L)), l_1797)) , (***g_144));
                        (**g_109) |= (0x155CE4527CAE150ELL >= 0L);
                        (**l_1411) |= ((~8L) >= (*p_60));
                    }
                    if ((*p_60))
                    { /* block id: 851 */
                        l_1799 = ((*g_1137) |= (*g_110));
                        (***g_144) = p_60;
                    }
                    else
                    { /* block id: 855 */
                        (*l_1734) = l_1800;
                    }
                    for (g_113 = 0; (g_113 <= 0); g_113 += 1)
                    { /* block id: 860 */
                        int32_t *l_1801 = &g_10[1];
                        int32_t *l_1802 = &l_1797;
                        int32_t *l_1803 = &l_1797;
                        int32_t *l_1804 = (void*)0;
                        int32_t *l_1806[5] = {&l_1797,&l_1797,&l_1797,&l_1797,&l_1797};
                        int i;
                        if (l_1761)
                            break;
                        --l_1811;
                        if ((*g_1137))
                            break;
                        l_1814 = l_1806[2];
                    }
                }
            }
        }
    }
    return l_1460[2][1][0];
}


/* ------------------------------------------ */
/* 
 * reads : g_34 g_66 g_10 g_65 g_951 g_952 g_205 g_138 g_144 g_145 g_109 g_176 g_642 g_993 g_215 g_162 g_113 g_4 g_820 g_261 g_518 g_519 g_594 g_995 g_1125 g_110 g_1137 g_178
 * writes: g_34 g_65 g_66 g_10 g_951 g_261 g_993 g_488 g_138 g_215 g_403 g_110 g_162 g_178 g_133 g_1125 g_712 g_1137
 */
static int32_t * func_61(const int64_t  p_62)
{ /* block id: 12 */
    uint64_t l_71 = 0xC91A03DC57991EE5LL;
    int32_t l_1005 = 1L;
    uint16_t *l_1014 = (void*)0;
    uint16_t **l_1013 = &l_1014;
    int32_t ****l_1063 = &g_145[6];
    int32_t l_1133 = 0L;
    int32_t **l_1138 = &g_1137;
    int32_t *l_1139[7][5] = {{&g_113,&g_113,&l_1005,&g_113,&g_113},{&g_10[1],&l_1133,&g_10[1],&g_66,&g_66},{&g_113,&l_1133,&l_1133,&g_113,&l_1133},{&g_66,&l_1133,&g_10[0],&l_1133,&g_66},{&l_1133,&g_113,&l_1133,&l_1133,&g_113},{&g_66,&g_66,&g_10[1],&l_1133,&g_10[1]},{&g_113,&g_113,&l_1005,&g_113,&g_113}};
    int32_t l_1167[8] = {0xD291627FL,0xD291627FL,0xD291627FL,0xD291627FL,0xD291627FL,0xD291627FL,0xD291627FL,0xD291627FL};
    uint32_t l_1185 = 0xF591B5A3L;
    int8_t *l_1216 = &g_820;
    int16_t l_1271 = (-2L);
    uint64_t *****l_1278 = &g_1207[3][1];
    int i, j;
    for (g_34 = 0; (g_34 <= 16); g_34++)
    { /* block id: 15 */
        uint16_t l_91[10] = {7UL,5UL,7UL,5UL,7UL,5UL,7UL,5UL,7UL,5UL};
        int32_t l_1003[10][7] = {{0x72D2A599L,(-1L),0x3406A07FL,1L,0xD921593FL,0x66EE2EDDL,0x66EE2EDDL},{0x89C9ED45L,(-1L),0x019D2A81L,(-1L),0x89C9ED45L,1L,0xD921593FL},{0L,0L,(-7L),0x7D550632L,0x87038234L,1L,(-1L)},{(-1L),0xD921593FL,0L,0x72D2A599L,(-3L),0x66EE2EDDL,0xC4D05D59L},{0L,0x7D550632L,(-7L),0x07D62168L,0x7D550632L,(-1L),0x791B1DFCL},{0x89C9ED45L,0L,(-7L),0x791B1DFCL,0L,0L,0x791B1DFCL},{0x72D2A599L,0x791D29C4L,0x72D2A599L,0x66EE2EDDL,0x791B1DFCL,0x3406A07FL,0xC4D05D59L},{(-1L),0x07D62168L,0x021D2205L,5L,0x89C9ED45L,(-7L),(-1L)},{0x07D62168L,1L,0xC4D05D59L,0x791B1DFCL,(-1L),0x3406A07FL,0xD921593FL},{0L,0xD921593FL,(-1L),0L,0xB18D2B3AL,0L,0x66EE2EDDL}};
        uint64_t ** const l_1081 = &g_518;
        uint64_t ** const *l_1080 = &l_1081;
        uint32_t *l_1122 = &g_1123;
        uint8_t l_1134 = 255UL;
        int i, j;
        for (g_65 = 1; (g_65 >= 0); g_65 -= 1)
        { /* block id: 18 */
            int32_t *l_72 = &g_66;
            uint32_t l_80 = 0xA7072EE8L;
            int32_t *l_950 = &g_951[5];
            uint32_t l_992 = 0x2EAEE621L;
            uint8_t l_1008 = 0xFEL;
            int32_t l_1124 = (-2L);
            int i;
            for (g_66 = 0; (g_66 <= 1); g_66 += 1)
            { /* block id: 21 */
                int i;
                g_10[g_66] = g_10[g_66];
            }
            if (g_10[g_65])
                continue;
            if ((safe_mod_func_int32_t_s_s(((safe_mod_func_int32_t_s_s(l_71, ((*l_72) &= g_10[1]))) , func_73(((safe_div_func_uint16_t_u_u(0UL, (safe_rshift_func_uint64_t_u_s((((l_80 < func_81((((*l_950) &= (func_86(&g_10[g_65], l_91[9], ((func_92(&l_91[7], ((safe_mod_func_int64_t_s_s((-9L), l_91[2])) ^ g_10[0]), l_91[2], &g_34) ^ 255UL) != l_71), &g_66) ^ (*l_72))) , &l_91[9]), g_952, p_62, l_71)) > g_176) & l_71), 38)))) , l_992), g_642[6])), g_10[0])))
            { /* block id: 533 */
                int32_t l_1006[10];
                int32_t l_1007[9][1] = {{0xC02657E7L},{1L},{0xC02657E7L},{1L},{0xC02657E7L},{1L},{0xC02657E7L},{1L},{0xC02657E7L}};
                int32_t ****l_1061 = &g_145[6];
                const int8_t * const l_1101 = (void*)0;
                int i, j;
                for (i = 0; i < 10; i++)
                    l_1006[i] = 0x0480E534L;
                for (g_66 = 0; (g_66 <= (-7)); g_66 = safe_sub_func_int64_t_s_s(g_66, 6))
                { /* block id: 536 */
                    int32_t l_999 = (-1L);
                    int32_t l_1004 = (-3L);
                    uint16_t **l_1038 = &l_1014;
                    for (g_488 = 0; (g_488 <= 2); g_488 += 1)
                    { /* block id: 539 */
                        int32_t *l_1000 = &l_999;
                        int32_t *l_1001 = &g_411;
                        int32_t *l_1002[2][9][5] = {{{&g_65,&g_411,&g_66,&g_411,&g_65},{&g_113,&g_411,(void*)0,&g_10[g_65],&g_113},{(void*)0,&g_66,&g_66,(void*)0,&g_10[g_65]},{&g_10[g_65],(void*)0,&g_411,&g_113,&g_113},{(void*)0,(void*)0,(void*)0,&g_10[g_65],(void*)0},{&g_113,&g_66,&g_10[g_65],&g_113,&g_10[g_65]},{&g_113,&g_113,&g_411,(void*)0,&g_10[g_65]},{(void*)0,&g_10[g_65],&g_10[g_65],&g_10[g_65],&g_10[g_65]},{&g_10[g_65],&g_66,(void*)0,&g_10[g_65],&g_10[g_65]}},{{(void*)0,&g_10[g_65],&g_411,&g_10[g_65],(void*)0},{(void*)0,&g_113,&g_66,&g_10[g_65],&g_113},{(void*)0,&g_66,&g_66,(void*)0,&g_10[g_65]},{&g_10[g_65],(void*)0,&g_411,&g_113,&g_113},{(void*)0,(void*)0,(void*)0,&g_10[g_65],(void*)0},{&g_113,&g_66,&g_10[g_65],&g_113,&g_10[g_65]},{&g_113,&g_113,&g_411,(void*)0,&g_10[g_65]},{(void*)0,&g_10[g_65],&g_10[g_65],&g_10[g_65],&g_10[g_65]},{&g_10[g_65],&g_66,(void*)0,&g_10[g_65],&g_10[g_65]}}};
                        int32_t **** const l_1030[5] = {&g_145[1],&g_145[1],&g_145[1],&g_145[1],&g_145[1]};
                        uint16_t *l_1035 = (void*)0;
                        uint16_t *l_1036 = &g_215[6];
                        const int16_t l_1037 = 1L;
                        int i, j, k;
                        ++l_1008;
                        l_1003[8][0] |= (p_62 & (safe_lshift_func_int32_t_s_u((l_1013 != (((safe_rshift_func_uint8_t_u_s((l_999 , ((safe_sub_func_uint16_t_u_u((((*l_1036) = (safe_sub_func_uint32_t_u_u(((safe_mul_func_uint8_t_u_u((((+(safe_mul_func_uint8_t_u_u(((safe_sub_func_uint8_t_u_u((safe_rshift_func_uint8_t_u_s(((void*)0 == l_1030[3]), (((*l_72) , ((((safe_add_func_int8_t_s_s((65535UL & (65535UL >= (((safe_mod_func_uint8_t_u_u(((*g_205) = (2UL & g_215[4])), (*l_72))) || l_1007[6][0]) , p_62))), p_62)) , p_62) <= 65527UL) ^ g_162)) == g_113))), l_999)) , p_62), p_62))) && 0x0FB8L) >= g_4), 0L)) < g_820), g_66))) | 0xADE3L), p_62)) != l_1037)), p_62)) >= g_261) , l_1038)), 12)));
                    }
                }
                for (g_403 = 0; (g_403 != (-28)); g_403 = safe_sub_func_int64_t_s_s(g_403, 7))
                { /* block id: 548 */
                    (*g_109) = &l_1006[9];
                    (*l_72) = (safe_sub_func_uint64_t_u_u(((((*l_72) != (safe_add_func_uint8_t_u_u((safe_add_func_uint64_t_u_u((*l_72), ((((safe_mul_func_int64_t_s_s(p_62, (l_1006[9] = (*l_72)))) >= p_62) > 0xCA4FL) | 247UL))), (0x51EF740CL != (*l_72))))) , g_4) <= g_66), (*g_518)));
                }
                for (g_162 = 0; (g_162 <= 15); g_162 = safe_add_func_int16_t_s_s(g_162, 3))
                { /* block id: 555 */
                    uint32_t l_1070 = 18446744073709551615UL;
                    for (g_178 = 0; (g_178 == 26); ++g_178)
                    { /* block id: 558 */
                        uint32_t *l_1056[6] = {&l_992,&l_992,&l_992,&l_992,&l_992,&l_992};
                        uint32_t **l_1055 = &l_1056[1];
                        uint32_t ***l_1054[5][5] = {{(void*)0,&l_1055,(void*)0,(void*)0,&l_1055},{&l_1055,(void*)0,(void*)0,&l_1055,(void*)0},{&l_1055,&l_1055,&l_1055,&l_1055,&l_1055},{(void*)0,&l_1055,(void*)0,(void*)0,&l_1055},{&l_1055,(void*)0,(void*)0,&l_1055,(void*)0}};
                        uint32_t ****l_1053[1];
                        int32_t *****l_1062[2];
                        uint16_t *l_1064 = &g_215[2];
                        uint32_t *l_1073 = &g_133;
                        uint32_t **l_1072 = &l_1073;
                        uint32_t ***l_1071 = &l_1072;
                        int32_t l_1087 = 1L;
                        const int8_t *l_1103[5][9][5] = {{{&g_1104,&g_1104,&g_1104,&g_1104,&g_1104},{&g_1104,&g_1104,&g_1104,&g_1104,&g_1104},{&g_1104,(void*)0,&g_1104,&g_1104,&g_1104},{&g_1104,(void*)0,&g_1104,(void*)0,&g_1104},{&g_1104,(void*)0,&g_1104,&g_1104,(void*)0},{&g_1104,&g_1104,&g_1104,&g_1104,&g_1104},{&g_1104,&g_1104,&g_1104,(void*)0,(void*)0},{(void*)0,&g_1104,&g_1104,&g_1104,&g_1104},{&g_1104,&g_1104,&g_1104,&g_1104,&g_1104}},{{&g_1104,&g_1104,&g_1104,&g_1104,&g_1104},{&g_1104,&g_1104,&g_1104,&g_1104,&g_1104},{&g_1104,&g_1104,&g_1104,&g_1104,&g_1104},{&g_1104,&g_1104,&g_1104,&g_1104,&g_1104},{&g_1104,&g_1104,&g_1104,(void*)0,&g_1104},{&g_1104,&g_1104,&g_1104,&g_1104,&g_1104},{&g_1104,&g_1104,&g_1104,&g_1104,&g_1104},{&g_1104,&g_1104,&g_1104,&g_1104,&g_1104},{&g_1104,(void*)0,&g_1104,&g_1104,&g_1104}},{{&g_1104,&g_1104,&g_1104,&g_1104,&g_1104},{&g_1104,&g_1104,&g_1104,&g_1104,&g_1104},{&g_1104,&g_1104,&g_1104,&g_1104,&g_1104},{(void*)0,&g_1104,&g_1104,&g_1104,&g_1104},{(void*)0,&g_1104,&g_1104,&g_1104,&g_1104},{&g_1104,&g_1104,&g_1104,&g_1104,&g_1104},{&g_1104,&g_1104,&g_1104,&g_1104,&g_1104},{&g_1104,&g_1104,&g_1104,&g_1104,&g_1104},{(void*)0,&g_1104,&g_1104,&g_1104,&g_1104}},{{&g_1104,(void*)0,&g_1104,&g_1104,(void*)0},{&g_1104,&g_1104,&g_1104,&g_1104,&g_1104},{&g_1104,&g_1104,&g_1104,&g_1104,(void*)0},{(void*)0,(void*)0,&g_1104,&g_1104,&g_1104},{(void*)0,&g_1104,&g_1104,&g_1104,(void*)0},{&g_1104,&g_1104,&g_1104,&g_1104,&g_1104},{&g_1104,(void*)0,&g_1104,&g_1104,&g_1104},{&g_1104,&g_1104,&g_1104,&g_1104,&g_1104},{&g_1104,&g_1104,&g_1104,&g_1104,&g_1104}},{{&g_1104,(void*)0,&g_1104,&g_1104,&g_1104},{&g_1104,&g_1104,&g_1104,&g_1104,&g_1104},{&g_1104,&g_1104,&g_1104,&g_1104,&g_1104},{&g_1104,&g_1104,&g_1104,&g_1104,&g_1104},{(void*)0,&g_1104,&g_1104,&g_1104,&g_1104},{(void*)0,&g_1104,&g_1104,&g_1104,&g_1104},{&g_1104,&g_1104,&g_1104,&g_1104,&g_1104},{&g_1104,&g_1104,&g_1104,&g_1104,&g_1104},{&g_1104,&g_1104,&g_1104,&g_1104,&g_1104}}};
                        const int8_t **l_1102 = &l_1103[1][7][0];
                        const int64_t l_1121 = 0xC428C026557C6E9BLL;
                        int i, j, k;
                        for (i = 0; i < 1; i++)
                            l_1053[i] = &l_1054[0][2];
                        for (i = 0; i < 2; i++)
                            l_1062[i] = (void*)0;
                        (*l_72) = ((&g_993 == l_1053[0]) , ((((g_10[0] <= (safe_mod_func_int64_t_s_s((safe_mod_func_int32_t_s_s((((((l_1061 = (l_1063 = l_1061)) == (void*)0) > l_71) ^ 250UL) != (((*l_1064)--) || (l_1007[6][0] , (!(safe_lshift_func_uint8_t_u_s(l_91[9], 7)))))), g_594)), l_1070))) , (void*)0) != (void*)0) || 1UL));
                        (*l_72) = ((*g_518) && (((*l_1071) = (void*)0) == (void*)0));
                        g_1125 |= ((*l_72) = (safe_rshift_func_int8_t_s_s((safe_mod_func_uint8_t_u_u((safe_sub_func_int64_t_s_s(((*l_72) , (l_1080 == (void*)0)), (g_65 > ((!((safe_mul_func_uint8_t_u_u((safe_add_func_int64_t_s_s((l_1087 > (l_1003[6][0] |= (((safe_sub_func_uint8_t_u_u((safe_mul_func_uint64_t_u_u(((safe_rshift_func_int16_t_s_u((safe_rshift_func_uint16_t_u_s(((~(safe_lshift_func_int64_t_s_u((((safe_rshift_func_uint64_t_u_s((p_62 <= (l_1101 == ((*l_1102) = (void*)0))), 47)) != (safe_lshift_func_int32_t_s_u((~((safe_mod_func_int32_t_s_s((+(((safe_sub_func_uint32_t_u_u(((*l_1073) = (safe_add_func_int64_t_s_s(((((safe_add_func_int8_t_s_s((safe_sub_func_int16_t_s_s(((safe_lshift_func_int32_t_s_u(p_62, 2)) >= p_62), g_261)), p_62)) && p_62) , g_642[6]) >= p_62), (-2L)))), l_1121)) , g_995) == l_1122)), g_951[1])) != p_62)), 2))) == p_62), 54))) < 0x91L), 12)), 8)) == l_1124), 18446744073709551612UL)), p_62)) ^ g_642[5]) , (*l_72)))), (*g_518))), (*g_205))) , l_1070)) | g_10[0])))), 0x1FL)), 4)));
                    }
                }
                for (g_261 = (-15); (g_261 < 23); g_261 = safe_add_func_uint8_t_u_u(g_261, 7))
                { /* block id: 574 */
                    int32_t l_1129 = 1L;
                    int32_t l_1132[4];
                    int i;
                    for (i = 0; i < 4; i++)
                        l_1132[i] = (-1L);
                    for (g_712 = 0; (g_712 <= 8); g_712 += 1)
                    { /* block id: 577 */
                        int32_t *l_1128 = &g_10[1];
                        int32_t *l_1130 = &g_113;
                        int32_t *l_1131[8] = {&g_66,&g_66,&g_113,&g_66,&g_66,&g_113,&g_66,&g_66};
                        int i;
                        if (p_62)
                            break;
                        (*l_72) = p_62;
                        l_1134++;
                    }
                    (***g_144) = &l_1132[0];
                    (*g_110) ^= 0L;
                }
            }
            else
            { /* block id: 585 */
                (*l_72) |= 0x7B67CF06L;
                if (p_62)
                    break;
            }
        }
    }
    l_1139[1][2] = ((*l_1138) = ((***l_1063) = g_1137));
    for (g_178 = (-3); (g_178 != 3); g_178++)
    { /* block id: 596 */
        uint16_t l_1148 = 0x12F2L;
        const uint32_t *l_1168 = &g_133;
        int32_t l_1179[10];
        int8_t l_1188 = (-1L);
        uint64_t ***l_1205[3];
        uint64_t ****l_1204 = &l_1205[2];
        uint64_t *****l_1203 = &l_1204;
        uint64_t * const ****l_1213 = (void*)0;
        const int32_t *l_1227 = &g_113;
        const int32_t ** const l_1226[5][5] = {{&l_1227,&l_1227,&l_1227,&l_1227,&l_1227},{&l_1227,&l_1227,&l_1227,&l_1227,&l_1227},{&l_1227,&l_1227,&l_1227,&l_1227,&l_1227},{&l_1227,&l_1227,&l_1227,&l_1227,&l_1227},{&l_1227,&l_1227,&l_1227,&l_1227,&l_1227}};
        int32_t ***l_1263 = &g_109;
        int32_t ****l_1262[6];
        int32_t l_1270 = 0x1770A9E2L;
        int64_t *l_1336 = &g_108[6][0][2];
        int64_t **l_1335 = &l_1336;
        int64_t ***l_1334 = &l_1335;
        uint32_t l_1359 = 4294967295UL;
        uint32_t l_1361 = 0xD1B6D6C8L;
        int i, j;
        for (i = 0; i < 10; i++)
            l_1179[i] = 1L;
        for (i = 0; i < 3; i++)
            l_1205[i] = (void*)0;
        for (i = 0; i < 6; i++)
            l_1262[i] = &l_1263;
    }
    return (***l_1063);
}


/* ------------------------------------------ */
/* 
 * reads : g_993
 * writes: g_993
 */
static int32_t  func_73(uint64_t  p_74, const int16_t  p_75)
{ /* block id: 530 */
    volatile uint32_t ** volatile **l_996 = &g_993;
    (*l_996) = g_993;
    return p_74;
}


/* ------------------------------------------ */
/* 
 * reads : g_65 g_205 g_138 g_144 g_145 g_109 g_10 g_66 g_261
 * writes: g_66 g_261
 */
static int64_t  func_81(uint16_t * p_82, int64_t  p_83, uint8_t  p_84, int8_t  p_85)
{ /* block id: 512 */
    uint64_t l_966[3][7] = {{0x5223128809CBB2B3LL,0x8E123E46FA7C71CELL,0x9CA9BF1D09005FE9LL,18446744073709551611UL,18446744073709551611UL,0x9CA9BF1D09005FE9LL,1UL},{0x6A306C2D3E0EE483LL,0x9CA9BF1D09005FE9LL,0UL,0x6A306C2D3E0EE483LL,0x38D409E0B4EDEA64LL,0x38D409E0B4EDEA64LL,0x6A306C2D3E0EE483LL},{0UL,1UL,0UL,0x38D409E0B4EDEA64LL,1UL,0x9CA9BF1D09005FE9LL,0x9CA9BF1D09005FE9LL}};
    int32_t *l_969 = &g_66;
    uint8_t *l_970[8] = {&g_488,&g_488,&g_488,&g_488,&g_488,&g_488,&g_488,&g_488};
    int32_t l_971[3];
    int16_t l_972 = 0xA101L;
    int32_t l_973 = 1L;
    int32_t *l_979 = &g_66;
    int32_t *l_980 = (void*)0;
    int32_t *l_981 = &g_113;
    int32_t *l_982 = (void*)0;
    int32_t *l_983 = &g_66;
    int32_t *l_984 = &g_66;
    int32_t *l_985 = (void*)0;
    int32_t *l_986 = &l_973;
    int32_t *l_987[6][10] = {{&g_10[0],&g_66,&g_4,(void*)0,&g_66,(void*)0,&g_4,&g_66,&g_10[0],&g_113},{&g_10[0],&g_66,&g_4,(void*)0,&g_66,(void*)0,&g_4,&g_66,&g_10[0],&g_113},{&g_10[0],&g_66,&g_4,(void*)0,&g_66,(void*)0,&g_4,&g_66,&g_10[0],&g_113},{&g_10[0],&g_66,&g_4,(void*)0,&g_66,(void*)0,&g_4,&g_66,&g_10[0],&g_113},{&g_10[0],&g_66,&g_4,(void*)0,&g_66,(void*)0,&g_4,&g_66,&g_10[0],&g_113},{&g_10[0],&g_66,&g_4,(void*)0,&g_66,(void*)0,&g_4,&g_66,&g_10[0],&g_113}};
    uint16_t l_988 = 0x8649L;
    int i, j;
    for (i = 0; i < 3; i++)
        l_971[i] = 3L;
lbl_991:
    l_973 = ((g_65 || ((+(safe_lshift_func_uint8_t_u_u((l_971[2] ^= (p_84 |= (safe_mod_func_uint8_t_u_u(((*g_205) != (safe_lshift_func_uint32_t_u_s(((safe_mul_func_int32_t_s_s(((*l_969) ^= ((safe_mod_func_uint8_t_u_u(((safe_sub_func_uint16_t_u_u((0x76L && ((void*)0 != (**g_144))), ((*p_82) = (l_966[0][5] , ((safe_add_func_int64_t_s_s(((((g_10[0] , l_966[0][5]) || p_85) != (-9L)) | 0L), p_85)) > 0x42F25D82L))))) , (*g_205)), 0x61L)) < p_83)), 0x285DA4E9L)) , 2UL), 7))), p_83)))), l_972))) , (*l_969))) , (*l_969));
    for (g_261 = 0; (g_261 <= 7); g_261 = safe_add_func_uint32_t_u_u(g_261, 8))
    { /* block id: 520 */
        int32_t l_978 = 0xBF0D2DF1L;
        for (p_83 = 12; (p_83 <= 13); p_83++)
        { /* block id: 523 */
            (*l_969) |= l_978;
        }
    }
    ++l_988;
    if (g_138)
        goto lbl_991;
    return p_84;
}


/* ------------------------------------------ */
/* 
 * reads :
 * writes:
 */
static int64_t  func_86(const int32_t * p_87, uint64_t  p_88, int32_t  p_89, int32_t * p_90)
{ /* block id: 29 */
    uint16_t *l_127[8];
    int32_t l_139 = 0x0373520EL;
    int32_t l_141 = 0x4CF6C4FFL;
    const uint64_t l_183 = 18446744073709551611UL;
    uint8_t *l_201 = (void*)0;
    uint8_t *l_206[6][2];
    int32_t l_264 = 0x332AA214L;
    int32_t l_265 = 0x7B5881AEL;
    int32_t l_266 = 0x8F512955L;
    uint32_t l_286 = 18446744073709551607UL;
    uint32_t l_352 = 0xB1153078L;
    uint64_t *l_385 = &g_162;
    uint64_t **l_384 = &l_385;
    uint64_t ***l_383 = &l_384;
    uint64_t ****l_382 = &l_383;
    uint32_t l_419[6];
    uint8_t l_420 = 0UL;
    int8_t *l_435 = &g_178;
    uint8_t l_436 = 1UL;
    int64_t *l_438 = &g_108[7][0][2];
    int64_t **l_437 = &l_438;
    int32_t l_550 = (-3L);
    int32_t l_551 = 0L;
    int32_t l_552 = 1L;
    int32_t l_554 = 0xF3D35504L;
    int32_t l_556 = 0x3457F07BL;
    int32_t l_557[4];
    int8_t l_595 = 0L;
    int8_t l_597 = 1L;
    int32_t *****l_620 = (void*)0;
    const int16_t *l_698 = &g_176;
    const int16_t **l_697[8][10][3] = {{{(void*)0,&l_698,&l_698},{&l_698,&l_698,(void*)0},{&l_698,&l_698,&l_698},{&l_698,&l_698,(void*)0},{(void*)0,&l_698,&l_698},{&l_698,&l_698,&l_698},{(void*)0,(void*)0,(void*)0},{&l_698,&l_698,&l_698},{&l_698,&l_698,(void*)0},{(void*)0,&l_698,&l_698}},{{&l_698,&l_698,&l_698},{(void*)0,&l_698,&l_698},{&l_698,&l_698,(void*)0},{&l_698,(void*)0,(void*)0},{(void*)0,&l_698,(void*)0},{&l_698,&l_698,&l_698},{(void*)0,&l_698,&l_698},{&l_698,&l_698,&l_698},{&l_698,&l_698,(void*)0},{&l_698,&l_698,&l_698}},{{(void*)0,&l_698,(void*)0},{(void*)0,(void*)0,&l_698},{(void*)0,&l_698,&l_698},{&l_698,&l_698,(void*)0},{&l_698,&l_698,&l_698},{&l_698,&l_698,(void*)0},{(void*)0,&l_698,&l_698},{&l_698,&l_698,&l_698},{(void*)0,(void*)0,(void*)0},{&l_698,&l_698,&l_698}},{{&l_698,&l_698,(void*)0},{(void*)0,&l_698,&l_698},{&l_698,&l_698,&l_698},{(void*)0,&l_698,&l_698},{&l_698,&l_698,(void*)0},{&l_698,(void*)0,(void*)0},{&l_698,(void*)0,(void*)0},{&l_698,(void*)0,&l_698},{(void*)0,&l_698,&l_698},{&l_698,&l_698,&l_698}},{{&l_698,&l_698,(void*)0},{&l_698,(void*)0,&l_698},{(void*)0,(void*)0,&l_698},{(void*)0,(void*)0,(void*)0},{(void*)0,&l_698,(void*)0},{&l_698,(void*)0,&l_698},{&l_698,&l_698,&l_698},{&l_698,&l_698,&l_698},{(void*)0,(void*)0,(void*)0},{&l_698,&l_698,(void*)0}},{{&l_698,&l_698,&l_698},{(void*)0,&l_698,&l_698},{(void*)0,(void*)0,(void*)0},{&l_698,&l_698,&l_698},{&l_698,&l_698,&l_698},{&l_698,(void*)0,&l_698},{(void*)0,&l_698,(void*)0},{(void*)0,(void*)0,(void*)0},{&l_698,(void*)0,(void*)0},{&l_698,(void*)0,&l_698}},{{(void*)0,&l_698,&l_698},{&l_698,&l_698,&l_698},{&l_698,&l_698,(void*)0},{&l_698,(void*)0,&l_698},{(void*)0,(void*)0,&l_698},{(void*)0,(void*)0,(void*)0},{(void*)0,&l_698,(void*)0},{&l_698,(void*)0,&l_698},{&l_698,&l_698,&l_698},{&l_698,&l_698,&l_698}},{{(void*)0,(void*)0,(void*)0},{&l_698,&l_698,(void*)0},{&l_698,&l_698,&l_698},{(void*)0,&l_698,&l_698},{(void*)0,(void*)0,(void*)0},{&l_698,&l_698,&l_698},{&l_698,&l_698,&l_698},{&l_698,(void*)0,&l_698},{(void*)0,&l_698,(void*)0},{(void*)0,(void*)0,(void*)0}}};
    uint16_t *** const l_752 = (void*)0;
    int8_t l_757 = 0x94L;
    int32_t l_798 = 0L;
    int64_t l_844 = 0x1E8DF26241506253LL;
    int64_t l_849 = 0x194C0837829B0CE9LL;
    uint32_t *l_939[9] = {&l_286,&l_286,&l_286,&l_286,&l_286,&l_286,&l_286,&l_286,&l_286};
    uint32_t **l_938 = &l_939[6];
    int i, j, k;
    for (i = 0; i < 8; i++)
        l_127[i] = &g_34;
    for (i = 0; i < 6; i++)
    {
        for (j = 0; j < 2; j++)
            l_206[i][j] = &g_138;
    }
    for (i = 0; i < 6; i++)
        l_419[i] = 6UL;
    for (i = 0; i < 4; i++)
        l_557[i] = 0xC2E2D8CBL;
    return p_89;
}


/* ------------------------------------------ */
/* 
 * reads : g_66
 * writes:
 */
static uint8_t  func_92(uint16_t * p_93, int32_t  p_94, int32_t  p_95, uint16_t * p_96)
{ /* block id: 26 */
    int32_t *l_99 = &g_66;
    int32_t **l_100 = &l_99;
    (*l_100) = l_99;
    return g_66;
}




/* ---------------------------------------- */
int main (int argc, char* argv[])
{
    int i, j, k;
    int print_hash_value = 0;
    if (argc == 2 && strcmp(argv[1], "1") == 0) print_hash_value = 1;
    platform_main_begin();
    crc32_gentab();
    func_1();
    transparent_crc(g_2, "g_2", print_hash_value);
    for (i = 0; i < 10; i++)
    {
        for (j = 0; j < 3; j++)
        {
            transparent_crc(g_3[i][j], "g_3[i][j]", print_hash_value);
            if (print_hash_value) printf("index = [%d][%d]\n", i, j);

        }
    }
    transparent_crc(g_4, "g_4", print_hash_value);
    for (i = 0; i < 2; i++)
    {
        transparent_crc(g_10[i], "g_10[i]", print_hash_value);
        if (print_hash_value) printf("index = [%d]\n", i);

    }
    transparent_crc(g_34, "g_34", print_hash_value);
    transparent_crc(g_65, "g_65", print_hash_value);
    transparent_crc(g_66, "g_66", print_hash_value);
    for (i = 0; i < 9; i++)
    {
        for (j = 0; j < 1; j++)
        {
            for (k = 0; k < 4; k++)
            {
                transparent_crc(g_108[i][j][k], "g_108[i][j][k]", print_hash_value);
                if (print_hash_value) printf("index = [%d][%d][%d]\n", i, j, k);

            }
        }
    }
    transparent_crc(g_113, "g_113", print_hash_value);
    transparent_crc(g_133, "g_133", print_hash_value);
    transparent_crc(g_138, "g_138", print_hash_value);
    transparent_crc(g_162, "g_162", print_hash_value);
    transparent_crc(g_176, "g_176", print_hash_value);
    transparent_crc(g_178, "g_178", print_hash_value);
    for (i = 0; i < 8; i++)
    {
        transparent_crc(g_215[i], "g_215[i]", print_hash_value);
        if (print_hash_value) printf("index = [%d]\n", i);

    }
    transparent_crc(g_261, "g_261", print_hash_value);
    transparent_crc(g_299, "g_299", print_hash_value);
    transparent_crc(g_373, "g_373", print_hash_value);
    transparent_crc(g_391, "g_391", print_hash_value);
    transparent_crc(g_403, "g_403", print_hash_value);
    transparent_crc(g_411, "g_411", print_hash_value);
    for (i = 0; i < 3; i++)
    {
        for (j = 0; j < 10; j++)
        {
            for (k = 0; k < 1; k++)
            {
                transparent_crc(g_448[i][j][k], "g_448[i][j][k]", print_hash_value);
                if (print_hash_value) printf("index = [%d][%d][%d]\n", i, j, k);

            }
        }
    }
    transparent_crc(g_449, "g_449", print_hash_value);
    transparent_crc(g_450, "g_450", print_hash_value);
    transparent_crc(g_451, "g_451", print_hash_value);
    transparent_crc(g_452, "g_452", print_hash_value);
    transparent_crc(g_453, "g_453", print_hash_value);
    transparent_crc(g_454, "g_454", print_hash_value);
    transparent_crc(g_455, "g_455", print_hash_value);
    transparent_crc(g_456, "g_456", print_hash_value);
    transparent_crc(g_457, "g_457", print_hash_value);
    transparent_crc(g_458, "g_458", print_hash_value);
    transparent_crc(g_459, "g_459", print_hash_value);
    for (i = 0; i < 9; i++)
    {
        for (j = 0; j < 3; j++)
        {
            transparent_crc(g_460[i][j], "g_460[i][j]", print_hash_value);
            if (print_hash_value) printf("index = [%d][%d]\n", i, j);

        }
    }
    transparent_crc(g_461, "g_461", print_hash_value);
    transparent_crc(g_462, "g_462", print_hash_value);
    transparent_crc(g_463, "g_463", print_hash_value);
    transparent_crc(g_464, "g_464", print_hash_value);
    transparent_crc(g_465, "g_465", print_hash_value);
    transparent_crc(g_466, "g_466", print_hash_value);
    transparent_crc(g_467, "g_467", print_hash_value);
    transparent_crc(g_468, "g_468", print_hash_value);
    transparent_crc(g_469, "g_469", print_hash_value);
    transparent_crc(g_488, "g_488", print_hash_value);
    transparent_crc(g_519, "g_519", print_hash_value);
    transparent_crc(g_594, "g_594", print_hash_value);
    for (i = 0; i < 9; i++)
    {
        transparent_crc(g_642[i], "g_642[i]", print_hash_value);
        if (print_hash_value) printf("index = [%d]\n", i);

    }
    transparent_crc(g_712, "g_712", print_hash_value);
    transparent_crc(g_820, "g_820", print_hash_value);
    transparent_crc(g_882, "g_882", print_hash_value);
    for (i = 0; i < 7; i++)
    {
        transparent_crc(g_951[i], "g_951[i]", print_hash_value);
        if (print_hash_value) printf("index = [%d]\n", i);

    }
    transparent_crc(g_952, "g_952", print_hash_value);
    transparent_crc(g_1104, "g_1104", print_hash_value);
    transparent_crc(g_1123, "g_1123", print_hash_value);
    transparent_crc(g_1125, "g_1125", print_hash_value);
    transparent_crc(g_1301, "g_1301", print_hash_value);
    for (i = 0; i < 1; i++)
    {
        for (j = 0; j < 10; j++)
        {
            transparent_crc(g_1753[i][j], "g_1753[i][j]", print_hash_value);
            if (print_hash_value) printf("index = [%d][%d]\n", i, j);

        }
    }
    transparent_crc(g_1828, "g_1828", print_hash_value);
    transparent_crc(g_1830, "g_1830", print_hash_value);
    transparent_crc(g_1832, "g_1832", print_hash_value);
    transparent_crc(g_1887, "g_1887", print_hash_value);
    transparent_crc(g_1944, "g_1944", print_hash_value);
    transparent_crc(g_2257, "g_2257", print_hash_value);
    transparent_crc(g_2321, "g_2321", print_hash_value);
    transparent_crc(g_2782, "g_2782", print_hash_value);
    transparent_crc(g_2825, "g_2825", print_hash_value);
    transparent_crc(g_2854, "g_2854", print_hash_value);
    transparent_crc(g_2879, "g_2879", print_hash_value);
    transparent_crc(g_2937, "g_2937", print_hash_value);
    transparent_crc(g_3095, "g_3095", print_hash_value);
    transparent_crc(g_3201, "g_3201", print_hash_value);
    transparent_crc(g_3203, "g_3203", print_hash_value);
    transparent_crc(g_3411, "g_3411", print_hash_value);
    transparent_crc(g_3705, "g_3705", print_hash_value);
    for (i = 0; i < 1; i++)
    {
        transparent_crc(g_3743[i], "g_3743[i]", print_hash_value);
        if (print_hash_value) printf("index = [%d]\n", i);

    }
    transparent_crc(g_3747, "g_3747", print_hash_value);
    transparent_crc(g_3793, "g_3793", print_hash_value);
    transparent_crc(g_3885, "g_3885", print_hash_value);
    transparent_crc(g_3890, "g_3890", print_hash_value);
    transparent_crc(g_4037, "g_4037", print_hash_value);
    transparent_crc(g_4104, "g_4104", print_hash_value);
    transparent_crc(g_4113, "g_4113", print_hash_value);
    platform_main_end(crc32_context ^ 0xFFFFFFFFUL, print_hash_value);
    return 0;
}

/************************ statistics *************************
XXX max struct depth: 0
breakdown:
   depth: 0, occurrence: 1056
XXX total union variables: 0

XXX non-zero bitfields defined in structs: 0
XXX zero bitfields defined in structs: 0
XXX const bitfields defined in structs: 0
XXX volatile bitfields defined in structs: 0
XXX structs with bitfields in the program: 0
breakdown:
XXX full-bitfields structs in the program: 0
breakdown:
XXX times a bitfields struct's address is taken: 0
XXX times a bitfields struct on LHS: 0
XXX times a bitfields struct on RHS: 0
XXX times a single bitfield on LHS: 0
XXX times a single bitfield on RHS: 0

XXX max expression depth: 46
breakdown:
   depth: 1, occurrence: 266
   depth: 2, occurrence: 61
   depth: 3, occurrence: 4
   depth: 4, occurrence: 4
   depth: 5, occurrence: 1
   depth: 6, occurrence: 2
   depth: 7, occurrence: 3
   depth: 8, occurrence: 1
   depth: 11, occurrence: 1
   depth: 13, occurrence: 2
   depth: 14, occurrence: 1
   depth: 15, occurrence: 6
   depth: 16, occurrence: 1
   depth: 17, occurrence: 3
   depth: 18, occurrence: 1
   depth: 19, occurrence: 2
   depth: 20, occurrence: 1
   depth: 21, occurrence: 5
   depth: 22, occurrence: 2
   depth: 23, occurrence: 3
   depth: 24, occurrence: 3
   depth: 25, occurrence: 2
   depth: 26, occurrence: 1
   depth: 27, occurrence: 3
   depth: 28, occurrence: 2
   depth: 30, occurrence: 1
   depth: 31, occurrence: 1
   depth: 32, occurrence: 3
   depth: 33, occurrence: 2
   depth: 34, occurrence: 3
   depth: 35, occurrence: 2
   depth: 36, occurrence: 1
   depth: 38, occurrence: 1
   depth: 40, occurrence: 1
   depth: 44, occurrence: 1
   depth: 46, occurrence: 1

XXX total number of pointers: 917

XXX times a variable address is taken: 2222
XXX times a pointer is dereferenced on RHS: 852
breakdown:
   depth: 1, occurrence: 641
   depth: 2, occurrence: 147
   depth: 3, occurrence: 32
   depth: 4, occurrence: 25
   depth: 5, occurrence: 7
XXX times a pointer is dereferenced on LHS: 603
breakdown:
   depth: 1, occurrence: 494
   depth: 2, occurrence: 54
   depth: 3, occurrence: 37
   depth: 4, occurrence: 16
   depth: 5, occurrence: 2
XXX times a pointer is compared with null: 93
XXX times a pointer is compared with address of another variable: 22
XXX times a pointer is compared with another pointer: 28
XXX times a pointer is qualified to be dereferenced: 14701

XXX max dereference level: 5
breakdown:
   level: 0, occurrence: 0
   level: 1, occurrence: 3503
   level: 2, occurrence: 838
   level: 3, occurrence: 340
   level: 4, occurrence: 327
   level: 5, occurrence: 143
XXX number of pointers point to pointers: 460
XXX number of pointers point to scalars: 457
XXX number of pointers point to structs: 0
XXX percent of pointers has null in alias set: 27.2
XXX average alias set size: 1.48

XXX times a non-volatile is read: 3949
XXX times a non-volatile is write: 1905
XXX times a volatile is read: 213
XXX    times read thru a pointer: 119
XXX times a volatile is write: 35
XXX    times written thru a pointer: 15
XXX times a volatile is available for access: 1.29e+03
XXX percentage of non-volatile access: 95.9

XXX forward jumps: 3
XXX backward jumps: 20

XXX stmts: 265
XXX max block depth: 5
breakdown:
   depth: 0, occurrence: 28
   depth: 1, occurrence: 26
   depth: 2, occurrence: 49
   depth: 3, occurrence: 46
   depth: 4, occurrence: 56
   depth: 5, occurrence: 60

XXX percentage a fresh-made variable is used: 16.4
XXX percentage an existing variable is used: 83.6
********************* end of statistics **********************/

 /********************* This is a debug version  **********************/


